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

Made UI more like Google apps#59

Merged
Koitharu merged 2 commits intoKotatsuApp:develfrom
ztimms73:ui-patch
Sep 5, 2021
Merged

Made UI more like Google apps#59
Koitharu merged 2 commits intoKotatsuApp:develfrom
ztimms73:ui-patch

Conversation

@ztimms73
Copy link
Member

  1. Now the AppBarLayout is transparent and the content is visible under it
    image
  2. Fixed crashes on tablets (removed style="@style/Widget.AppCompat.ProgressBar.Horizontal" of LinearProgressIndicator in fragment_details)
  3. I had to abandon the AnimatedToolbar in sheet_pages, the Toolbar with text was not full-length on the tablet, it was cropped, which is strange
  4. Other minor edits

However, there was one question. Do we need to do something with the filter, i.e. move it from DrawerLayout to BottomSheet?
image

left = insets.left,
right = insets.right
binding.pager.updatePadding(
top = -(resources.resolveDp(56) + insets.top)
Copy link
Member

Choose a reason for hiding this comment

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

what is 56?

Copy link
Member Author

Choose a reason for hiding this comment

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

The height of the AppBarLayout. Replaced by measureHeight

binding.recyclerView.updatePadding(
bottom = insets.bottom
)
val headerHeight = insets.top + resources.resolveDp(64)
Copy link
Member

Choose a reason for hiding this comment

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

Magic number, it will be better to move 64dp into dimens

@Koitharu Koitharu merged commit d1fd317 into KotatsuApp:devel Sep 5, 2021
@Koitharu
Copy link
Member

Koitharu commented Sep 5, 2021

I think it is time for a new release

@ztimms73 ztimms73 deleted the ui-patch branch September 5, 2021 15:12
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