Is there a simpler/better way to put a border/outline around my TextView?

前端 未结 2 1043
[愿得一人]
[愿得一人] 2021-02-03 23:05

So I wanted to have a TextView with a cool border around it. I couldn\'t find any standard way of doing it, so I came up with this:

@drawable/custom_bg_1: A blue rounded

2条回答
  •  隐瞒了意图╮
    2021-02-03 23:35

    Why not try stroke instead of solid?

    According to Shape Drawable you can do something like:

    
    

    instead of and then set it as your TextView background.

提交回复
热议问题