Android开发教程:ListView用法解析
Android开发教程:ListView用法解析
首先还是先把布局文件给大家贴出来
R.layout.frame.xml
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:Android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:paddingTop="1pt"
- android:paddingLeft="1pt"
- android:paddingRight="10pt"
- android:orientation="horizontal" >
- <TextView
- android:id ="@+id/appname"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:textSize="15pt"
- />
- </LinearLayout>
这是activity采用的布局文件,现在解释一下中间几个属性的含义
android:orientation 指定LineatLayout 是横向的还是纵向的 "vertical"纵向
android:drawSelectorOnTop 指定 容器是否画在内容上方
选择"false"
选择"true"
|
评论暂时关闭