It looks like the android:divider attribute is not accepting a color value. So you need to create a separate delimiter for it to work:
divider.xml
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <size android:width="1dip" /> <solid android:color="#f00" /> </shape>
layout.xml
<LinearLayout android:layout_width="match_parent" android:layout_height="48dp" android:orientation="horizontal" android:divider="@drawable/divider" android:dividerPadding="12dip" android:showDividers="middle" android:background="#ff2d2d2d" >
Also note that android:divider is only available in Android 3.0 or later, and it does not work in previous versions of Android.
Vladimir Mironov
source share