Skip to content

Implement edge-to-edge mode - #109

Open
MrApplejuice wants to merge 7 commits into
mainfrom
implement-edge-to-edge-mode
Open

Implement edge-to-edge mode#109
MrApplejuice wants to merge 7 commits into
mainfrom
implement-edge-to-edge-mode

Conversation

@MrApplejuice

@MrApplejuice MrApplejuice commented Dec 14, 2025

Copy link
Copy Markdown
Collaborator

Implement edge2edge mode in the most simple, but ugly way: A black/white top-bar followed by the app's content is a step-down in the general look and feel of the app, imo. I will check out later if this can be improved somehow...

Fixes #89
Fixes #118 as well now.

Screenshot_1765673656

This comment was marked as resolved.

@MrApplejuice

Copy link
Copy Markdown
Collaborator Author

Added dedicated background spacer for the topbar and enabled extra "enforce" mode for the bottom bar:

image

This pretty much concludes the edge to edge feature implementation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated 5 comments.

Comment thread app/src/main/java/eu/pkgsoftware/babybuddywidgets/MainActivity.kt
Comment on lines +150 to +159
ViewCompat.setOnApplyWindowInsetsListener(it.root) { v, insets ->
val systemBars = insets.getInsets(
WindowInsetsCompat.Type.systemBars()
)
v.setPadding(systemBars.left, 0, systemBars.right, 0)

binding.topSpacer.layoutParams.height = systemBars.top

WindowInsetsCompat.CONSUMED
}
Comment thread app/src/main/res/layout/activity_main.xml
Comment on lines +67 to +71
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:attr/colorBackground"
android:orientation="vertical">
Comment thread app/build.gradle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Local network permission needed Redesign main app interface to handle Android 35 E2E mode

3 participants