From what I can understand, you want a rectangular frame for a TextView fix me if I'm wrong
that
You can set a shape that can be selected (rectangle) as the background for the view.
<TextView android:text="Some text" android:background="@drawable/black_bhgroung"/>
And the drawable rectangle black_bhgroung.xml (placed in the res / drawable folder):
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <solid android:color="#00000000" /> <stroke android:width="1dip" android:color="#4fa5d5"/> </shape>
Hope this helps ...
source share