Reputation: 1289
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~~
Upvotes: 1
Views: 272
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
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