All Projects → natario1 → Bottomsheetcoordinatorlayout

natario1 / Bottomsheetcoordinatorlayout

Licence: apache-2.0
A handy CoordinatorLayout that works well when used in a bottom sheet, even with AppBarLayouts inside.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Bottomsheetcoordinatorlayout

Bottomsheet
BottomSheet dialog library for Android
Stars: ✭ 219 (-9.13%)
Mutual labels:  android-ui, bottomsheet
Cornersheet
Behavior to expand view from corner
Stars: ✭ 274 (+13.69%)
Mutual labels:  android-ui, bottomsheet
Google-Maps-BottomSheet
A BottomSheetBehavior framework mirroring Google Maps'
Stars: ✭ 75 (-68.88%)
Mutual labels:  android-ui, bottomsheet
Simple View Behavior
Simple and easy way to deal with CoordinatorLayout Behavior
Stars: ✭ 434 (+80.08%)
Mutual labels:  coordinatorlayout, android-ui
MaterialDesignSample
Android transition元素共享动画、CoordinatorLayout、AppBarLayout、FloatingActionButton、BottomSheet、SnackBar、自定义behavior实现动画效果。
Stars: ✭ 28 (-88.38%)
Mutual labels:  coordinatorlayout, bottomsheet
Superbottomsheet
Android native BottomSheet on steroids 💪
Stars: ✭ 548 (+127.39%)
Mutual labels:  android-ui, bottomsheet
Tristatetogglebutton
Customizable tri-state toggle button (with three states, three state toggle) for Android
Stars: ✭ 198 (-17.84%)
Mutual labels:  android-ui
Elegantdialog
A beautiful, customizable and interactive dialog for Android written in Kotlin/Java 😍
Stars: ✭ 189 (-21.58%)
Mutual labels:  android-ui
Qmui android
提高 Android UI 开发效率的 UI 库
Stars: ✭ 13,341 (+5435.68%)
Mutual labels:  android-ui
Konfetti
Celebrate more with this lightweight confetti particle system 🎊
Stars: ✭ 2,278 (+845.23%)
Mutual labels:  android-ui
Pageindicator
An Instagram like page indicator compatible with RecyclerView and ViewPager.
Stars: ✭ 236 (-2.07%)
Mutual labels:  android-ui
Androidappshortcuts
App Shortcuts for Android on Pre Nougat 7.1!
Stars: ✭ 223 (-7.47%)
Mutual labels:  android-ui
Restring
Replace bundled Strings dynamically, or provide new translations, for Android
Stars: ✭ 217 (-9.96%)
Mutual labels:  android-ui
Droidmotion
🏂 Implementation of a simple android motion
Stars: ✭ 200 (-17.01%)
Mutual labels:  android-ui
Modern Android Development
Modern Android Development tools & key points
Stars: ✭ 219 (-9.13%)
Mutual labels:  android-ui
Flowingdrawer
swipe display drawer with flowing & bouncing effects.
Stars: ✭ 2,535 (+951.87%)
Mutual labels:  android-ui
Textsurface
A little animation framework which could help you to show message in a nice looking way
Stars: ✭ 2,264 (+839.42%)
Mutual labels:  android-ui
Blitz
Android Library: Set self-updating string with relative time in TextView (e.g. 5 minutes ago)
Stars: ✭ 217 (-9.96%)
Mutual labels:  android-ui
Customfloatingactionbutton
This view is for replacement of standard Floating Action Button from Google Support Library. It is easy to use, customizable and you can also add text to button
Stars: ✭ 222 (-7.88%)
Mutual labels:  android-ui
Jackknife
⚔️ 金轮法王,哦不,是轮子大师带你玩转Android,是时候尝试下MVVM了。这是一个Android应用开发全家桶库,支持Kotlin+MVVM+Dagger2+Retrofit架构。
Stars: ✭ 215 (-10.79%)
Mutual labels:  android-ui

BottomSheetCoordinatorLayout

implementation 'com.otaliastudios:bottomsheetcoordinatorlayout:1.0.4'

A handy CoordinatorLayout that works well when used in a bottom sheet, even with AppBarLayouts inside.

Having issues with android.support v28? Please try com.otaliastudios:bottomsheetcoordinatorlayout:1.1.0-RC1.

Usage

Just use BottomSheetCoordinatorLayout as the root view of your bottom sheet. It will be automatically given the right BottomSheetBehavior.

<com.otaliastudios.bottomsheetcoordinatorlayout.BottomSheetCoordinatorLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    
    <!-- AppBarLayout -->
    
    <!-- Everything else -->
    
</com.otaliastudios.bottomsheetcoordinatorlayout.BottomSheetCoordinatorLayout>

To get an instance of the behavior, use bscl.getBehavior(). As usual with behaviors, the returned value might be null if the view has not gone through a layout, so wait for that.

If you just want to set appropriate BottomSheetCallback, you can use bscl.setBottomSheetCallback(). Callbacks will be added to the sheet behavior as soon as it is available, so this can be called safely whenever you want. Same goes for other set() methods: they will apply the result to the behavior as soon as it is available.

Contributing

You are welcome to contribute with issues, PRs or suggestions. To contact me, send an email.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].