1

is there any possible way to set the border around the TextView such like the pics shown below? the first pic is what i currently got and the second one is what kind of border i want. all element that contain in the LinearLayout are just indiviual textViews thx so much for the help~~ enter image description here

enter image description here

Ricky Zheng
  • 1,279
  • 3
  • 16
  • 27

2 Answers2

2

You can do that by setting your TextView background a xml shape that has background and border like this:

<shape android:shape="rectangle" xmlns:android="http://schemas.android.com/apk/res/android">
        <solid android:color="#191919" />
        <stroke android:width="1dp" android:color="#191919"/>
  </shape>

You can red more about this here

Cata
  • 11,133
  • 11
  • 65
  • 86
1

I think you can do that please check the following link: Android - Way to appear bordered text on the TextView? this might help to solve u r problem.

Community
  • 1
  • 1
Sumant
  • 2,775
  • 2
  • 22
  • 30