Floating Action Button Expandable
An android library that brings the float action button expandable. You can include optional contents and use everywhere.
Usage
Code
Layout xml
add xmlns:app="http://schemas.android.com/apk/res-auto"
Attributes
attribute name | description |
---|---|
fab_content | The content of the button |
fab_padding_text_icon | The padding between the text and icon |
fab_text_color | The color of the text |
fab_bg_color | The background color of the button |
fab_icon | The icon of the button |
fab_duration | The length of the expand or collapse animation |
fab_text_size | The text size of the button |
fab_typeface | The font path in assets folder |
fab_padding | The padding inside the button |
fab_expanded | The button is expanded if you set true |
Setup
Step 1. Add the JitPack repository in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
implementation 'com.github.imtuann:FloatingActionButtonExpandable:1.1.2'
Compatibility
Minimum Android SDK: API level 21