Ricky Zheng
Ricky Zheng

Reputation: 1289

how to set the color of the TextView structure?

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

Upvotes: 1

Views: 272

Answers (2)

Cata
Cata

Reputation: 11211

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

Upvotes: 2

Sumant
Sumant

Reputation: 2795

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.

Upvotes: 1

Related Questions