Keep text in TextView with drawableLeft centered

后端 未结 21 1532
野的像风
野的像风 2021-02-03 17:10

In my app I have a header bar which consists of a single textview with fill_parent as width, which have a specific background color and some centered text. Now I want to add a d

21条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-03 17:53

    You can set the parent of the TextView as a RelativeLayout whose width is match_parent.

    
    
    
    
    
    

提交回复
热议问题