迷茫2017-04-17 17:35:15
It is recommended to use the RecyclerView
,外面的样式可以自定义drawable
设置background
,至于里面的item
分割线,可以使用RecyclerView
的addItemDecoration()
method to achieve this.
PHP中文网2017-04-17 17:35:15
Use a selector to set the background externally
Then set the vertical spacing and horizontal spacing, and use the transparent part as the dividing line
伊谢尔伦2017-04-17 17:35:15
In the adapter’s getView(), replace the background for different position values
黄舟2017-04-17 17:35:15
The table uses recyclerview, and the background of recyclerview uses cardview
高洛峰2017-04-17 17:35:15
I wrote two blogs on how to use RecyclerView+CardView, you can take a look http://liompei.com/2016/07/20...