Currently I am using this code to see the divider lines:
medalsList.setDivider(new ColorDrawable(0x99F10529)); medalsList.setDividerHeight(1);
What is the default RGB color (as shown in the code above) used on a ListView that hasn't had its divider lines changed?
The default divider is determined by the listDivider
item in the current theme. For the stock themes, the default divider is one of:
Those drawables can be found in the platforms data folder of your sdk installation.
You can use:
<View android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?android:attr/listDivider" />
Refer: How can I get the default divider?
P.S. Posting it here because Google search seems to land first on this thread instead of the other one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With