-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(android): edge to edge #10774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
feat(android): edge to edge #10774
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
View your CI Pipeline Execution ↗ for commit 36c5e3d
☁️ Nx Cloud last updated this comment at |
farfromrefug
reviewed
Sep 3, 2025
packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/LayoutBase.java
Outdated
Show resolved
Hide resolved
farfromrefug
added a commit
to Akylas/NativeScript
that referenced
this pull request
Nov 18, 2025
This reverts commit 248ff4b. # Conflicts: # packages/core/platforms/android/widgets-release.aar # packages/core/ui/core/view/index.android.ts # packages/core/ui/core/view/index.d.ts # packages/core/ui/core/view/view-common.ts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Android: Edge-to-Edge Support with Overflow Handling
This PR introduces a flexible edge-to-edge system for Android, allowing views to handle system insets more precisely.
🔧 Features
androidOverflowEdge(new property)Controls which inset edges should be applied and/or consumed by the view.
androidOverflowInset(new event)Fired when
androidOverflowEdgeis set todont-apply. Allows manual handling of the insets.enableEdgeToEdge()(new method)Enables full edge-to-edge rendering and lets you:
✏️
androidOverflowEdgeOptionsnoneleft/top/right/bottomdont-applyandroidOverflowInsetleft-dont-consumetop-dont-consumeright-dont-consumebottom-dont-consumeall-but-leftall-but-topall-but-rightall-but-bottom🧩 Manually Handling Insets with
androidOverflowInsetWhen
androidOverflowEdgeis set todont-apply, the view will receive theandroidOverflowInsetevent instead of automatically applying insets.This event allows you to inspect, modify, and explicitly consume specific inset sides using the
*Consumedflags.Example: