I have a textview, I want to show the line below it. For this, I use the drawableBottom attribute. Here is my code
<TextView android:id="@+id/total" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="right" android:text="TextView" android:drawableBottom="@drawable/dividerline"/>
here is my dividerline.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"> <stroke android:width="70dp" android:color="@android:color/black" /> <size android:height="1dp" /> <solid android:color="@android:color/black" /> </shape>
I get no errors. Just when I launch the application, the line below does not appear below the text.
Are you using the drawableBottom attribute incorrectly? Looking forward to some help :)
arjukhan
source share