设为首页 加入收藏

TOP

Android RecycleView多种布局实现(工厂模式)(三)
2019-09-01 23:26:42 】 浏览:79
Tags:Android RecycleView 多种 布局 实现 工厂 模式
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:tools="http://schemas.android.com/tools" 4 android:orientation="vertical" 5 android:layout_width="match_parent" 6 android:layout_height="wrap_content" 7 android:layout_margin="4dp" 8 android:background="#ffffff" 9 android:elevation="2dp"> 10 11 <ImageView 12 android:contentDescription="@id/item_title" 13 android:id="@+id/item_image" 14 android:layout_width="match_parent" 15 android:layout_height="170dp" 16 android:scaleType="centerCrop" 17 tools:src="@drawable/img_7" /> 18 19 <TextView 20 android:id="@+id/item_title" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:layout_marginTop="8dp" 24 android:paddingStart="8dp" 25 android:paddingEnd="8dp" 26 android:lines="1" 27 android:ellipsize="end" 28 android:textColor="#000000" 29 android:textSize="18sp" 30 tools:text="Item Title" /> 31 32 <TextView 33 android:id="@+id/item_sub_title" 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" 36 android:layout_marginBottom="8dp" 37 android:paddingStart="8dp" 38 android:paddingEnd="8dp" 39 android:lines="1" 40 android:ellipsize="end" 41 android:textSize="14sp" 42 tools:text="Sub Title" /> 43 44 </LinearLayout>

 

首页 上一页 1 2 3 下一页 尾页 3/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇TabLayout您可能不知道的实用用法 下一篇as无法关联git

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目