Skip to content
4 changes: 3 additions & 1 deletion app/src/main/res/layout/activity_edit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="bottom"
android:fitsSystemWindows="true"
tools:context=".edit.EditActivity"
android:gravity="center"
android:layout_margin="2dp"
Expand All @@ -22,7 +23,8 @@
android:layout_gravity="bottom|center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="2dp">
android:layout_margin="2dp"
android:paddingBottom="24dp">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this paddingBottom really needed? Would you mind posting a screenshot showing how the screen looks like when the OS is configured to not show the navigation buttons?

Thanks a lot for contributing! :-)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is Samsung Galaxy S23 (Android 15, API 35) without navigation buttons:image

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the extra padding can be removed — it was mostly for visual spacing, to make the buttons look less close to the navigation bar.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood! Better remove it I guess, so that the space can be used on small screens or in landscape mode.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!


<androidx.appcompat.widget.AppCompatButton
android:drawablePadding="4dp"
Expand Down