SquareFloatActionButton
Create square float action button using this example !!!
In this example we are creating an square floating action button which will be different from float action button but working will be same!!!
Also we have integrated expandable functionality of "read more" and "read less" in textview with a recyclerview.
Enjoy!!!
Gradle
Step 1
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2
Add the dependency
dependencies {
compile 'com.github.HemendraGangwar:SquareFloatActionButton:5ba4f63e7f'
}
Usage
<com.hg.gangwar.squareFloat.HgSquareFloatButton
android:id="@+id/squareFab"
android:layout_width="110dp"
android:layout_height="55dp"
android:layout_alignParentBottom="true"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="10dp"
android:layout_marginTop="30dp"
android:background="@drawable/drawable_fab_square_background"
android:contentDescription="@null"
android:elevation="5dp"
android:padding="10dp"
android:src="@drawable/drawable_fab_plus_icon" />