sergejsha / edge-to-edge Goto Github PK
View Code? Open in Web Editor NEWFull screen Android apps using simple Kotlin DSL
License: Apache License 2.0
Full screen Android apps using simple Kotlin DSL
License: Apache License 2.0
On Android R, the behaviour of ViewCompat.setOnApplyWindowInsetsListener
has changed to support IME (see for example https://proandroiddev.com/exploring-windowinsets-on-android-11-a80cf8fe19be).
I currently have a fragment that is used in two different location in my app:
My app is build like so:
edgeToEdge()
to include padding for the top system baredgeToEdge()
to include padding for the top system barIn API 29, the fragment inside the CoordinatorLayout won't get OnApplyWindowInsetsListener
called
In API 30, the fragment do get OnApplyWindowInsetsListener
called (probably due to the change for the new IME code)
Now, my fix right now is just to check if the fragment is not inside a CoordinatorLayout to call fragment.edgeToEdge()
.
But I'm wondering if there is anything that could be done in the edge-to-edge library to fix this instead. What do you think?
The navigation bar color is transparent, But the navigationBar in Android Q it displays half black.
Then I check the google calendar app, the navigation bar can be half white. can it be we set the navigationBar transparent, the navigation bar goes with the theme color, Or we can set the navigation bar look the normal color half white?
The Google suggests set the color transparent , so if we set another color can use perform the adapter color change which the Android Q help us achieve the function
It appears that the implementation doesn't work properly when I set edge-to-edge on an Activity. The bottom navigation bar is still fully transparent. For example:
What I want is to have the bottom navigation bar semi-transparent:
My fix is to have the Edge-to-Edge use the "android.R.id.content" view as the root view instead of the decor view.
I have created a project that shows the issue and the fix. See https://github.com/thierryd/EdgeToEdgeActivityIssue
Thanks for such a convenient library.
Wanted to report that the way you suggest in the README file works good for screens with no navigation bar, but for devices with good old navigation bar (like we have in Android versions before 9) setting navigation color to transparent causes issues with these navigation bars making navigation buttons almost invisible.
Here is a screenshot taken from your sample app on Android 7:
I guess it should be mentioned in README that such transparent navigation bar should be set only for values-29
as it is mentioned in Google`s doc: https://developer.android.com/training/gestures/gesturenav#transparent-bars
I will open a PR quit later mentioning it if you don't mind.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.