-
-
Save turastory/ba68609ef7f08b81f2d57c2d0ca849f1 to your computer and use it in GitHub Desktop.
Android - Extended FAB using Material Button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<android.support.design.button.MaterialButton | |
style="@style/Widget.MaterialComponents.Button.TextButton.Icon" | |
android:layout_width="wrap_content" | |
android:layout_height="56dp" | |
android:layout_gravity="center_horizontal|bottom" | |
android:layout_marginBottom="16dp" | |
android:elevation="12dp" | |
android:paddingStart="12dp" | |
android:paddingEnd="20dp" | |
android:text="Text Here" | |
android:textColor="@android:color/white" | |
android:textSize="14sp" | |
app:backgroundTint="?attr/colorAccent" | |
app:cornerRadius="24dp" | |
app:icon="Icon Here" | |
app:iconSize="24dp" | |
app:iconTint="@android:color/white"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment