Status Update
Comments
cc...@google.com <cc...@google.com> #2
It would also be nice to be able to set different maxLines
for the large and small titles. For example, setting maxLines = 2
for the large title and maxLines = 1
for the small title.
This functionality is something that would also be possible with TwoRowsTopAppBar
being publicly exposed.
du...@google.com <du...@google.com>
ap...@google.com <ap...@google.com> #3
@Nick - Having the app bar adjust to its content height is quite tricky here, mainly when there are other constraints that involve the scroll behavior.
What we did at maxLines
will still be applied to the Text
, however, the height set up is going to be done programmatically on the top app bar you chose.
sh...@meta.com <sh...@meta.com> #4
@sgibly We don't really need the app bar to adjust to its content height. What we are asking for is a way to configure the title based on expanded/collapsed state. TwoRowsTopAppBar
provides a way to handle this, but is a private composable.
Our goal:
- use a slightly larger font size than the current default when in the expanded state
- allow the title to wrap 2 lines when in the expanded state
- confine the tile to a single line when in the collapsed state
As a workaround we have forked ExtraLargeTopAppBar
composable that we use throughout our application:
Description
Version used: androidx.paging:paging-*:3.0.0-alpha01
Devices/Android versions reproduced on: Samsung S-10
I am using PositionalDataSource in my code and when i request to loadAroud() a specific index, it loads sequentially from last loaded index till requested index instead of jumping and loading around requested index.
Its was working on stable version : androidx.paging:paging:2.1.2