How to move buttons text when state is pressed

后端 未结 5 771
挽巷
挽巷 2021-01-01 16:19

I made a custom background for a button and also for different button states. But now I made to a point that I cannot understand.

When button is in normal state the

5条回答
  •  囚心锁ツ
    2021-01-01 16:47

    I did not try it myself but if you use nine-patch as a background drawable for both states then you should consider setting proper padding box in pressed state drawable. See details here.

提交回复
热议问题