分割线样式
android给listview设置分割线Divider样式
设置分割线的例子如下:
<ListView android:id="@+id/HomeListView" android:layout_width="fill_parent"
android:layout_height="fill_parent"android:divider="#123"
android:layout_margin="10dip"></ListView>
但运行后,发现样式没起作用。
解决办法:
给listview设置android:dividerHeight为非0即可。
如:
<ListView android:id="@+id/HomeListView" android:layout_width="fill_parent"
android:layout_height="fill_parent"android:divider="#000"
android:dividerheight="1px"
android:layout_margin="10dip"></ListView>
相关推荐
chenjinlong 2020-02-19
83580494 2013-07-19
langjiao 2013-07-16
kiduo0 2013-07-10
gongzhiyao0 2010-11-15
bigdatazx 2010-11-05
Urchindong 2011-08-01
peixiaopao 2011-08-21
MeOrdinary 2014-05-13
magic00 2019-10-21
guizhongyun 2011-09-27
csuhanshuai 2015-03-30
Sunanang 2015-03-30
snailbing 2015-04-23
huohu00 2015-04-22
toperfect 2015-07-01
nickey 2012-01-29
Rgenxiao 2012-01-26
满城风絮 2011-12-03