
The roaf of Android
helloKingshan
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Android自定义控件
新建一个布局 title.xml 代码如下<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="match_原创 2017-03-01 10:04:56 · 435 阅读 · 0 评论 -
ListVIew的使用和优化
Listview最常用和最难用的控件。 简单写法 数组的数据无法直接传递给listView 所以需要适配器 ArrayAdapter有多个构造函数 依次传入当前上下文 ListView子项布局的id 以及要适配的数据以及要适配的数据 使用android.R.layout.simple_list_item_1 内置布局文件 只有一个textview listView调用SetA原创 2017-03-01 15:05:34 · 411 阅读 · 0 评论