{"repo":"germainkevinbusiness/CollapsingTopBarCompose","free":true,"listed":false,"github":"https://github.com/germainkevinbusiness/CollapsingTopBarCompose","clone":"git clone https://github.com/germainkevinbusiness/CollapsingTopBarCompose.git","description":"A Jetpack Compose Collapsing Top Bar, that expands or collapses. Please, remember to star ⭐️ this project if you like it!","language":"Kotlin","stars":170,"topics":["android","android-library","collapsing-toolbar","collapsingtoolbar","collapsingtoolbarlayout","kotlin"],"license":null,"category":"mobile-apps","readme_excerpt":"CollapsingTopBarCompose A Jetpack Compose TopBar that collapses or expands based on detected scroll events or by calling: or extension methods. Collapse/Expand due to user scroll and/or by calling the methods: collapse() & expand() Collapse/Expand due to user scroll while displaying only the title on the left side Expand only when a user has reached the top of a LazyColumn How to add this library to your android app with a 'libs.versions.toml' file in 3 steps Step 1. Add the jitpack repository to the repositories { } function, inside your settings.gradle.kts like so: Step 2. Go to your file, and add: Step 3. Add the dependency in your file, like so: How to add this library to your android app (with gradle files in Groovy language & without a 'libs.versions.toml' file) in 2 steps Step 1. Add the jitpack repository to the repositories { } function, inside your project build.gradle or inside your settings.gradle like so: Step 2. Add the dependency in your file, like so: How to use this library 1 - In order to use a , you first need to create a . 2- In order for the to collapse or expand when a vertical scrolling is occuring inside your Layout, you need to add the inside your Layout's : So a complete example could look like: The above example is when you want the to collapse or expand on any detected vertical scroll. But what if for example, you want your to only expand when a user is at the top of your LazyColumn or LazyVerticalGrid? For that, you need to pass a such as a for a ","default_branch":null,"files":null,"tree":[],"storefront":"/r/germainkevinbusiness","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/germainkevinbusiness/CollapsingTopBarCompose/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}