I have tried it out with:
<ListView
android:id="@+id/ListView01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:divider="@color/redBackground"
android:dividerHeight="1dip">
</ListView>
and color value is inside colors.xml:
<color name="redBackground">#C60202</color>
And its working fine and displaying Divider color as red with 1dip height.
Update:
Just check your listview layout, you have mentioned 1px for layout_width
and layout_height
and you are setting 4px for the dividerHeight
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…