Friday, May 24, 2013

[android help] How do I add a 1dp line to the bottom of my textview cell ( not a table layout)


I am new to android, jsut a very plain simple question, how do i add a bottom line to a text view, so that it appears at the bottom of the cell as 1dp, here's the code so far:




android:layout_width="match_parent"
android:layout_height="47.5dp"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:paddingTop="13dp"
android:background="@drawable/line_str"
android:paddingLeft="8dp"
android:text="@string/manage_categories"
android:singleLine="true"
android:textColor="@color/white"
android:fontFamily="Roboto-Regular"
android:layout_gravity="center"
android:textSize="16sp"
/>


line_str.xml as follows:






















Any help appreciated. Thanks!Justin



.

stackoverflow.comm

No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...