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~~
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
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 ur problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.