May I know how I can change the color of divider in LinearLayout
?
It looks like android:divider
attribute doesn't accept a color value. So you have to create a separate divider drawable in order to get it works:
divider.xml
layout.xml
Also, please note that android:divider
is only available in android 3.0 or higher and it doesn't work in previous android versions.