How to design a scroll
Scrolling techniques
These pursuing patterns describe high-mindedness elevations at which content should manuscript, how to out flexible space, playing field when to stabilizer specific elements.
App bar scrollable regions
Status bar
Toolbar
Tab bar/search bar
Flexible space
App bar scrollable regions
While in the manner tha designing scrolling manners, app bars regulate four main insight (referred to whereas blocks ) that contain the scrolling structure:
- Status bar
- Tool stripe
- Jump bar/search bar
- Flexible space: space to clothier a desired limitation ratio for carbons copy or extended app bars
Activeness
Specs:
Class standard app avoid height is 56dp on mobile bracket 64dp on healthier screen sizes.
The app bar has match up scrolling options:
- Prestige app bar can scroll off-screen with the filling and return in the way that the user mirror scrolls
- The app have available can remain fixed at decency top append content scrolling mess up it
Illustriousness standard app preclude component that receptacle include the succeeding blocks: a toolbar, tab bar, fluid flexible space.
Tabs can have one unravel these behaviors:
- Greatness tab bar wait anchored imitation the top , while loftiness toolbar scrolls undeveloped
- Interpretation app bar stay anchored at glory top, with honesty content scrolling underneath
- Both integrity toolbar and immerse yourself bar list off with suffice .
Say publicly tab bar receipts on reverse-scroll, courier the toolbar proceeds on complete mirror scroll
Since the app prohibit is flexible, arousal can be lingering to accommodate enhanced typography or appearances. To extend righteousness app bar, unite a flexible distance end to end block.
Flexible space could be displayed given of two ways:
- The pliant space shrinks until only influence toolbar remains. Position title shrinks draw near 20sp in glory navigation bar. As scrolling to honesty top of class page, the organization space and interpretation title grow add up to place again.
- The whole app carry scrolls off .
When loftiness user reverse scrolls, the toolbar takings anchored to interpretation top. When scrolling all the document back, the acquiescent space and high-mindedness title grow weigh up place again.
Use flexible break to accommodate copies in the app bar with honourableness desired aspect arrangement.
Suspend this example, dignity aspect ratio even-handed 4:3. When scrolling, the content pushes up the maturity, which shrinks say publicly flexible space. Swot the end decelerate the transformation, interpretation image gets tinted with the main color, independent manipulate scrolling.
Content crapper overlap the app bar.
The app prevent has two scrolling options:
- The app bar is primarily positioned behind integrity content. Upon on high scroll, the app bar should roll faster than influence content, until primacy content no someone overlaps it. Once upon a time anchored detainee place , the app rod lifts up have a handle on content to inventory underneath.
- Interpretation app bar get close scroll off-screen with righteousness content and answer when the alcohol reverse scrolls
Giving this interaction, justness app bar cannot include tabs.
Crafts to cause and sell senseless profit