Is there an easy way to add a border to the top and bottom of an Android View?

后端 未结 24 2786
盖世英雄少女心
盖世英雄少女心 2020-11-22 13:36

I have a TextView and I\'d like to add a black border along its top and bottom borders. I tried adding android:drawableTop and android:drawableBottom

24条回答
  •  庸人自扰
    2020-11-22 14:13

    Just to enforce @phreakhead ´s and user1051892 ´s answers, if negative, must to be greater than . If not, item´s painting will be mixed with stroke´s painting and you may think these values are not working.

提交回复
热议问题