How to properly remove padding (or margin?) around buttons in Android?

前端 未结 13 1023
醉梦人生
醉梦人生 2020-12-13 04:50

Currently, I have the following bottom log in button.

When button is not being pressed

When button is being pressed

The XML loo

13条回答
  •  渐次进展
    2020-12-13 05:53

    As simple, use the inset property like:

    android:insetTop="0dp"
    android:insetBottom="0dp"
    android:insetRight="0dp"
    android:insetLeft="0dp"
    

提交回复
热议问题