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

Updated info page animation #36

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

Conversation

gilgoldzweig
Copy link

@gilgoldzweig gilgoldzweig commented Mar 1, 2020

preview

Copy link
Collaborator

@rharter rharter left a comment

Choose a reason for hiding this comment

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

Sorry for the delay, I'm sure you can imagine things have been busy with the reschedule.

Thanks for the contribution! I think some of these changes don't handle different screen sizes. Also, I noticed a bit of padding between the list and the toolbar in both states. Not sure if that comes from the change in inset handling.

binding.list.apply {
layoutManager = LinearLayoutManager(context, VERTICAL, false)
adapter = this@InfoFragment.adapter
}

binding.inset.doOnApplyWindowInsets { view, insets, initialState ->
binding.inset.doOnApplyWindowInsets { _, insets, _ ->
Copy link
Collaborator

Choose a reason for hiding this comment

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

This change looks like you're now setting the height of the wrong view. The height was being set on the inset view, not the fragment's view.

android:layout_height="wrap_content"
android:text="Roboto"
android:gravity="start|center_vertical"
android:text=" app is open souce,"
Copy link
Collaborator

Choose a reason for hiding this comment

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

These were intentionally broken up so the text would still flow on smaller devices (and larger ones). Does this mitigate that in some way?

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

2 participants