StackExpandableView
A custom view that resembles the iOS notification group behavior
Requirements
- A project configured with the AndroidX
- SDK 16 and and higher
Install
Download via Gradle:
Add this to the project build.gradle
file:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
And then add the dependency to the module build.gradle
file:
dependencies {
implementation 'com.github.fabiosassu:StackExpandableView:latest_version'
}
Where the latest_version
is the value from Download
badge.
Usage
Simple usage
All you need to do is to define a StackExpandableView
item inside your layout:
<it.fabiosassu.stackexpandableview.StackExpandableView android:id="@+id/horizontalStack" android:layout_width="wrap_content" android:layout_height="wrap_content" app:orientation="horizontal" app:animationDuration="1000" app:shownElements="5" app:parallaxOffset="8dp"/>