How can I add a border at the bottom of the TextView in Android. The following is the XML code of my TextView.
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:text="Sales"
android:textColor="#000"
android:gravity="center"
android:padding="10dp"
/>
and I am calling the XML like,
ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(mContext,
R.layout.layoutName, lables);
How to add the border below each content.
Any help is really appreciated.