Add background for extended fab

This commit is contained in:
Alex Sytnyk 2018-08-10 17:05:11 +03:00
parent a52b40879f
commit a2d540f9ff
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/img_shadow_fab_tap" android:state_pressed="true"/>
<item android:drawable="@drawable/img_shadow_fab"/>
</selector>

View file

@ -78,7 +78,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal" android:layout_gravity="bottom|center_horizontal"
android:background="@drawable/img_shadow_fab" android:background="@drawable/extended_fab_bg"
android:drawablePadding="@dimen/content_padding_half" android:drawablePadding="@dimen/content_padding_half"
android:gravity="center" android:gravity="center"
android:paddingLeft="32dp" android:paddingLeft="32dp"