Confirm Action Button | About |
---|---|
An early stage implementation of a data bindable floating action button for android that supports a tap twice to confirm workflow. |
Gradle:
implementation 'com.crushonly.confirmactionbutton:confirmactionbutton:0.0.2'
As the project is in it's early stages, it is not on jCenter yet - you will need to add the bintray repo to your gradle file
repositories{
maven {
url "http://dl.bintray.com/syllabix/maven"
}
}
This project is in very early stages of development, and while it does provide a functional component - levels of customization are limited.
Data Binding Example:
<com.crushonly.confirmactionbutton.ConfirmActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="14dp"
android:layout_marginEnd="14dp"
android:background="@drawable/confirm_btn_background"
android:layout_gravity="bottom|right"
android:elevation="4dp"
app:drawableRight="@drawable/icn_morph"
app:onClick="@{ () -> activity.handleClick() }"
app:onConfirmClick="@{ () -> activity.handleConfirmClick() }"
app:confirmActionMode="@={ activity.confirmActionMode }"
app:confirmText="@={ activity.confirmButtonMessage }"/>
/>
- Improve Test Coverage
- Expand widget styleable attributes
- Improve usage guide in Readme