sketchub icon

TextView Border

CoCoCo_CoCoCo
10 Likes
0 Comments
54 Downloads

Screenshots

About

No image code only

To draw a border around TextView, you can use background attribute of the TextView widget and assign a shape to it. The shape is such that the stroke on the shape outline appears as border.

  • Inject TextView:

android:background="@drawable/border"

  • Image: You have to create the following drawable file in res/drawable/ folder

border.png

©2025 Sketchub | User Policy