欢迎来到天天文库
浏览记录
ID:9804298
大小:254.00 KB
页数:11页
时间:2018-05-10
《android tab组件和其他组件结合使用listview》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、Tab组件和其他组件结合使用(含ListView)完成如下列各图的效果:首先先对这个页面进行布局,在主要的xml(activity_tab_list_view.xml)中代码如下:[html]viewplaincopyprint?1.2、ut_width="match_parent" 4. android:layout_height="match_parent" > 5. 6. 3、 2. 4、tical="true" 9. android:layout_centerHorizontal="true"/> 10. 11. 5、ght="match_parent">6、ext="@string/hello_world"android:textSize="50dip"android:layout_centerVertical="true"android:layout_centerHorizontal="true"/>在添加两个与ListView有关的xml文件分别命名,在activity_tab01.xml编写的代码是:[html]viewplaincopyprint?1. 2.<7、RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3. xmlns:tools="http://schemas.android.com/tools" 4. android:layout_width="match_parent" 5. android:layout_height="match_parent" 6. android:orientation="horizontal" 7. an8、droid:background="#FFFFFF"> 8.
2、ut_width="match_parent" 4. android:layout_height="match_parent" > 5. 6.
3、 2. 4、tical="true" 9. android:layout_centerHorizontal="true"/> 10. 11.
4、tical="true" 9. android:layout_centerHorizontal="true"/> 10. 11.
5、ght="match_parent">6、ext="@string/hello_world"android:textSize="50dip"android:layout_centerVertical="true"android:layout_centerHorizontal="true"/>在添加两个与ListView有关的xml文件分别命名,在activity_tab01.xml编写的代码是:[html]viewplaincopyprint?1. 2.<7、RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3. xmlns:tools="http://schemas.android.com/tools" 4. android:layout_width="match_parent" 5. android:layout_height="match_parent" 6. android:orientation="horizontal" 7. an8、droid:background="#FFFFFF"> 8.
6、ext="@string/hello_world"android:textSize="50dip"android:layout_centerVertical="true"android:layout_centerHorizontal="true"/>在添加两个与ListView有关的xml文件分别命名,在activity_tab01.xml编写的代码是:[html]viewplaincopyprint?1. 2.<
7、RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3. xmlns:tools="http://schemas.android.com/tools" 4. android:layout_width="match_parent" 5. android:layout_height="match_parent" 6. android:orientation="horizontal" 7. an
8、droid:background="#FFFFFF"> 8.
此文档下载收益归作者所有