Skip to content

rahmadarifan/CustomBottomSheetBehavior

Repository files navigation

CustomBottomSheetBehavior

CustomBottomSheetBehavior Library for Android

  • Create Anchor Bottom Sheet
  • Fixed Tab Layout Scrolling on View Pager

Example

You can import the example of this Library, or you can see this video :

Watch the video

Installation

Add the maven repo url to your build.gradle on projek:

repositories {
    maven { url 'https://jitpack.io' }
}

Add the library to the dependencies:

dependencies {
    implementation 'com.github.rahmadarifan:CustomBottomSheetBehavior:v0.0.1'
}

Create Anchor Bottom Sheet

Use CustomBottomSheetBehavior and set app:behavior for your bottom sheet view:

app:behavior_anchorOffset="224dp"
app:behavior_defaultState="anchored"
app:behavior_peekHeight="192dp"
app:layout_behavior="com.rahmadarifan.library.custombottomsheetbehavior.CustomBottomSheetBehavior"

Fixed Tab Layout Scrolling on View Pager

Setup your ViewPager inside the bottom sheet with BottomSheetUtils:

BottomSheetUtils.setupViewPager(viewPager);

About

CustomBottomSheetBehavior Library for Android

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages