I have buttons, but is there space between them? Any ideas how to clean up the space? Thanks !
Asked
Active
Viewed 57 times
2 Answers
0
Add style for button in XML
style="?android:attr/borderlessButtonStyle"
and
android:stateListAnimator="@null"
it requires API level 21 or more..
An example would be
<Button
android:id="@+id/btn_send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Send"
style="?android:attr/borderlessButtonStyle"
android:stateListAnimator="@null" />

Ganesh Pokale
- 1,538
- 1
- 14
- 28
-
Thanks! Not an obvious option. And do not immediately understand how to configure. With your help, everything worked. – Gen Ts Jan 23 '20 at 09:16
0
You need to set margin and padding to 0. But we really need to see your code to help you.
<Button
android:id="@+id/mybutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:padding="0dp" />

Dennis Rieke
- 201
- 4
- 18