Simple Floating Action Button with text
Firstly, add Jitpack repository in your root build.gradle file (not your module build.gradle file):
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Add dependency to your module's build.gradle file:
dependencies {
implementation 'com.github.mustafaersoyer:fabwithtext:0.0.3'
}
<com.me.textfab.FloatingActionButton
android:foreground="?android:attr/selectableItemBackground"
app:floating_background_color="@color/colorAccent"
app:floating_title="Start Tour"
app:floating_title_color="@android:color/white"
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:elevation="0dp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_gravity="bottom|center"
android:layout_marginBottom="70dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_centerInParent="true" />
👤 ** Mustafa ERSOY**
- Twitter: @mustafaersoyx
- Github: @mustafaersoyer
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator