Skip to content
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

#104 Fixed navigationbar on detail screen. #542

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

valjapan
Copy link
Member

Since I did not push my master branch, I will push again.
Here is the previous pull request.(#461)

Issue

Overview (Required)

  • The colors of the icons on the bottom sheet and the navigation bar are similar, making it difficult to see.

Notes

  • @jmatsu says, I used systemUiVisibility. Thank you for the advice.
  • As a result, the navigation is not transparent only within this fragment.

Screenshot

Before After After(now)
image image image

@@ -99,6 +100,10 @@ class SessionDetailFragment : DaggerFragment() {
container,
false
)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
activity?.window?.decorView?.systemUiVisibility =
Copy link
Member

@takahirom takahirom Jan 23, 2020

Choose a reason for hiding this comment

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

Thanks!
We are using SystemUiManager class. can you check it? 🙏

Copy link
Member Author

Choose a reason for hiding this comment

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

@takahirom
sorry. I was busy working and couldn't help.
Unfortunately I couldn't call SystemUiManager.
Could you give me any advice?

Copy link
Member

@takahirom takahirom Feb 6, 2020

Choose a reason for hiding this comment

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

Of course!
How about moving SystemUiManager to corecomponet?

Copy link
Member Author

Choose a reason for hiding this comment

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

@takahirom
This is solved using SystemUiManager! Thank you for the advice!
commit a08be2a

Copy link
Contributor

@jmatsu jmatsu left a comment

Choose a reason for hiding this comment

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

Thank you so much! The approach looks good. Could you please address only one point which was from takahirom? ref: https://github.com/DroidKaigi/conference-app-2020/pull/542/files#r370191036

@valjapan
Copy link
Member Author

Sorry for the late resolution of the issue.
I'm struggling to call SystemUIManagar on android-base.
Let me do my best a little more.

@jmatsu-bot
Copy link
Collaborator

Your apk has been deployed to https://deploygate.com/distributions/dc687d5465b94fd172d3794aa7a964d29a26cddd. Anyone can try your changes via the link.

Generated by 🚫 Danger


navigationBarColors.systemUiVisibility.distinctUntilChanged().observe(this) {
activity?.window?.decorView?.systemUiVisibility =
View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR or View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
Copy link
Collaborator

Choose a reason for hiding this comment

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

⚠️ Field requires API level 23 (current min is 21): android.view.View#SYSTEM_UI_FLAG_LIGHT_STATUS_BAR


navigationBarColors.systemUiVisibility.distinctUntilChanged().observe(this) {
activity?.window?.decorView?.systemUiVisibility =
View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR or View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
Copy link
Collaborator

Choose a reason for hiding this comment

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

⚠️ Field requires API level 26 (current min is 21): android.view.View#SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR

@jmatsu-bot
Copy link
Collaborator

No error was reported but at least one warning was found.

Generated by 🚫 Danger

@jmatsu jmatsu removed their request for review August 11, 2024 12:36
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.

When BottomSheet is expanded, top left corner is not rounded
4 participants