如何设置宽度的ListView分? [英] How to set width of ListView divider?
本文介绍了如何设置宽度的ListView分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎么可以设置我的自定义的ListView分的宽度,为了有比我行的宽度变小?
how can I set the width of my custom ListView divider, in order to have it smaller than my row width?
感谢
推荐答案
请一个9补丁PNG,有左,右透明像素。例如,一个53x4 .9.png具有25透明像素任侧(+像素9patch它)将拉伸1像素出来所以它25个像素两侧。
Make a 9 patch png that has transparent pixels on the left and right. For example, a 53x4 .9.png that has 25 transparent pixels either side (+ pixels to 9patch it) would stretch the 1 pixel out so there is 25 pixels either side of it.
这篇关于如何设置宽度的ListView分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文