
参见英文答案 > How to add border to listview and different row colors at the same time 1个
我有一个可滚动的列表视图.我需要像这样突出显示行的顶部和底部边框.作为一个新手告诉我如何做到这一点.提前致谢
解决方法:
androID:ListSelector="@drawable/List_selectorcolor"在drawable中创建这样的
<shape xmlns:androID="http://schemas.androID.com/apk/res/androID" androID:shape="rectangle" > <gradIEnt androID:angle="90" androID:endcolor="#000000" androID:startcolor="#000000" androID:type="linear"/> <stroke androID:wIDth="1dp" androID:color="#800080" androID:dashWIDth="2dp"/> </shape> 总结 以上是内存溢出为你收集整理的android – 在listview中突出显示行的边框全部内容,希望文章能够帮你解决android – 在listview中突出显示行的边框所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)