Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Improve the edge-to-edge implementation#13

Merged
marcelpinto merged 3 commits intomainfrom
yaraki/edge-to-edge
Jan 11, 2023
Merged

Improve the edge-to-edge implementation#13
marcelpinto merged 3 commits intomainfrom
yaraki/edge-to-edge

Conversation

@yaraki
Copy link
Contributor

@yaraki yaraki commented Jan 6, 2023

The status bar is transparent and shows the app bar behind.

The actionbar is hidden in the theme rather than in the code so that Scaffold can reflect the correct inset values

LazyColumn uses the padding values at the content end rather than the list itself.

Please add a descriptive PR title

The status bar is transparent and shows the app bar behind.

The actionbar is hidden in the theme rather than in the code so that Scaffold can reflect the
correct inset values

LazyColumn uses the padding values at the content end rather than the list itself.
@yaraki
Copy link
Contributor Author

yaraki commented Jan 6, 2023

The status bar shows the app bar behind. The list stretches till the screen end.

Screenshot_1672999360

@yaraki yaraki requested a review from marcelpinto January 6, 2023 10:27
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// Ensure that the declaring activity theme don't show an actionbar
actionBar?.hide()
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should keep this? Given that the client could potentially use any theme since it's extending the activity. This ensures the actionBar would be hidden and avoid the double toolbar

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can keep this, but we still need to hide the action bar in the theme. Otherwise, Scaffold cannot find the correct inset values.

@marcelpinto marcelpinto merged commit e136e6b into main Jan 11, 2023
@marcelpinto marcelpinto deleted the yaraki/edge-to-edge branch January 11, 2023 08:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants