Programmatically Setting Linearlayout Divider Size
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 approach works
Solution 1:
your drawable height is 0. try the following:
<shapexmlns:android="http://schemas.android.com/apk/res/android"><sizeandroid:width="10dp"android:height="10dp" /><!--android:height depends on the height you want for the horizontal line---></shape>
or add:
drawable.setIntrinsicHeight(height);
Post a Comment for "Programmatically Setting Linearlayout Divider Size"