RecyclerView简单使用之自定义RecyclerView分割线
2016-11-08 15:47
411 查看
1,在自己的项目drawable下面创建shapeb这么一个文件
2,在项目的styles.xml文件中引用
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <size android:height="4dp"></size> <gradient android:startColor="#ffff0000" android:centerColor="#ff00ff00" android:endColor="#ff0000ff" android:type="linear"></gradient> </shape>
2,在项目的styles.xml文件中引用
<resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="android:listDivider">@drawable/shapeb</item> </style> </resources>
相关文章推荐
- RecyclerView中ItemDecorationd的简单使用(二)---为item设置分割线
- 安卓中RecyclerView的简单使用和自定义RecyclerView的接口点击监听事件
- android5.0--RecyclerView和CardView结合使用的简单教程
- 自定义UIAlertView及简单的回调函数使用说明
- Android之RecyclerView简单使用(二)
- Android RecyclerView使用简单介绍
- Recyclerview的简单使用
- android中RecyclerView使用自定义的列表布局
- 自定义view的简单使用
- Android之RecyclerView简单使用(三)
- 自定义组件的简单使用—View
- Android之RecyclerView简单使用(完结篇)
- Android新特性之RecyclerView的简单使用
- RecyclerView 的简单使用步骤
- Android RecyclerView 的简单使用
- IOS_简单创建tableView并使用自定义的单元格
- RecyclerView的简单使用
- RecyclerView 的简单使用
- RecyclerView简单使用
- 简单代码使用nib自定义的view