RecyclerView的基本创建
发布时间:2015-12-10 01:00:05
线性显示 类似于listview: 线性宫格显示 类似于grid view: 用线性宫格显示 类似于瀑布流: 结构图: 测试代码:activity_main. 1 <RelativeLayout ="http://schemas.android.c ...
线性显示 类似于listview:
线性宫格显示 类似于grid view:
用线性宫格显示 类似于瀑布流:
结构图:
测试代码:
activity_main.
1 <RelativeLayout ="http://schemas.android.com/apk/res/android" 2 ="http://schemas.android.com/tools" 3 android:layout_width="match_parent" 4 android:layout_height="match_parent" > 5 6 <android.support.v7.widget.RecyclerView 7 android:id="@+id/recycler_view" 8 android:layout_width="match_parent" 9 android:layout_height="match_parent"10 android:layout_centerHorizontal="true"11 android:layout_centerVertical="true" />12 13 </RelativeLayout>
原标题:RecyclerView的基本创建
关键词:ie
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。