I have tried multiple solutions to this but none seem to work! I am currently using the following Drawable
as a divider (this is the horizontal example but the same
your drawable height is 0. try the following:
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<size
android:width="10dp"
android:height="10dp" />
<!--android:height depends on the height you want for the horizontal line--->
</shape>
or add:
drawable.setIntrinsicHeight(height);