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
Drawable
your drawable height is 0. try the following:
or add:
drawable.setIntrinsicHeight(height);