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

Top App Bar Sample #1

Merged
merged 3 commits into from
Sep 20, 2022
Merged

Top App Bar Sample #1

merged 3 commits into from
Sep 20, 2022

Conversation

imashnake0
Copy link
Owner

@imashnake0 imashnake0 commented Sep 20, 2022

Summary of changes:

  1. Made system bars transparent.
  2. Drew behind system bars.
  3. Added a TopAppBar.
  4. Added statusBarPadding().

Note: Android Studio templates configure system bar colors in theme/Theme.kt, remove this first!

Tested changes:
LGTM.

@imashnake0
Copy link
Owner Author

Before drawing behind system bars:

@imashnake0
Copy link
Owner Author

After adding WindowCompat.setDecorFitsSystemWindows(window, false):

@imashnake0
Copy link
Owner Author

@imashnake0
Copy link
Owner Author

@imashnake0
Copy link
Owner Author

Q.E.D.

@imashnake0 imashnake0 merged commit 71d7ded into main Sep 20, 2022
@imashnake0 imashnake0 deleted the top-app-bar branch September 20, 2022 03:15
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.

None yet

1 participant