- Add WrapViewPager to your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Add the dependency to your app build.gradle
dependencies {
implementation 'com.github.yunuseker:WrapViewPager:1.0.0'
}
- Done You're all set, let's start!
<com.yunuseker.library.WrapViewPager
android:id="@+id/wrap_view_pager"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>