Skip to content

EdSergeev/TextFloatingActionButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TextFloatingActionButton

Android floating action button (fab) with text

sample

Download

Download via Gradle:

compile 'com.github.edsergeev:text-fab:1.0.0'

Usage

You can use it as regular FloatingActionButton, but with additional attributes

    <com.github.edsergeev.TextFloatingActionButton
        android:id="@+id/fab"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|end"
        android:layout_margin="@dimen/fab_margin"
        android:scaleType="center"
        android:src="@drawable/ic_draft_n_black"
        app:backgroundTint="@android:color/white"
        app:useCompatPadding="true"
        
        android:text="10"
        app:text_x_offset="7dp"
        app:text_y_offset="10dp"
        android:textColor="#000"
        android:textSize="18sp"
        android:textStyle="bold"
        android:fontFamily="sans-serif-medium" />

License

Licensed under the Apache License, Version 2.0 (the "License");

    http://www.apache.org/licenses/LICENSE-2.0

About

Android floating action button (fab) with text

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages