在安卓的数据列表显示的时候,通常会用到ListView,所以列出下学习时候遇到的
1,用系统自定义的ListView
首先在xml文件中建立listview
<ListView
android:id="@+id/list_view"
android:layout_width="match_parent"
android:layout_h...
分类:
移动开发 时间:
2015-05-09 16:35:51
阅读次数:
169
图片省略了不上传了。。。
首先看activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent...
分类:
其他好文 时间:
2015-05-09 06:38:38
阅读次数:
168
最近用到了com.handmark.pulltorefresh.library.PullToRefreshListView的下拉刷新
发现了两个问题
1.PullToRefreshListView的layout_height必须要设为match_parent,之前ListView设为wrap_content是没有问题的,这一点要注意。
2.PullToRefreshListView的visi...
分类:
其他好文 时间:
2015-05-08 10:57:23
阅读次数:
127
1)fill_parent设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或控件为fill_parent将强制性让它布满整个屏幕。2) wrap_content设置一个视图的尺寸为...
分类:
移动开发 时间:
2015-05-06 14:30:46
阅读次数:
123
.xml文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ????xmlns:tools="http://schemas.android.com/tools" ????android:layout_width="match_parent" ????android...
分类:
移动开发 时间:
2015-05-02 15:16:35
阅读次数:
169
三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。1)fill_parent设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或...
分类:
移动开发 时间:
2015-04-29 19:15:19
阅读次数:
107
主要布局如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="...
分类:
其他好文 时间:
2015-04-29 15:10:59
阅读次数:
177
android传感器
view:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_he...
分类:
移动开发 时间:
2015-04-26 15:19:29
阅读次数:
160
view:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_...
分类:
其他好文 时间:
2015-04-26 09:33:14
阅读次数:
155
avtivity_cehua.xml
<android.support.v4.widget.DrawerLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer"
android:layout_width="match_parent"
android:layout_height="matc..
分类:
移动开发 时间:
2015-04-24 19:25:03
阅读次数:
159