Android: Make floating action buttons use the correct accent color programmatically.
This commit is contained in:
1 parent
91c1c0b1b3
commit
4f6a5e0293
5 files changed
+29
-12
No files matched your search
@@ -33,7 +33,7 @@
|
||||
android:layout_alignBottom="@+id/image_game_screen"
|
||||
android:layout_alignEnd="@+id/text_game_title"
|
||||
android:layout_marginBottom="28dp"
|
||||
android:background="@drawable/oval_ripple_gc"
|
||||
android:background="@drawable/oval_ripple_accent"
|
||||
android:src="@drawable/ic_add"
|
||||
android:stateListAnimator="@anim/button_elevation"
|
||||
android:elevation="4dp"
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginTop="24dp"
|
||||
tools:src="@drawable/placeholder_banner"
|
||||
app:border_color="#ffcccccc"
|
||||
app:border_color="?android:colorAccent"
|
||||
app:border_width="2dp"
|
||||
/>
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
android:layout_alignBottom="@+id/image_game_screen"
|
||||
android:layout_alignEnd="@+id/text_game_title"
|
||||
android:layout_marginBottom="-28dp"
|
||||
android:background="@drawable/oval_ripple_wii"
|
||||
android:background="@drawable/oval_ripple_accent"
|
||||
android:src="@drawable/ic_play"
|
||||
android:stateListAnimator="@anim/button_elevation"
|
||||
android:elevation="4dp"/>
|
||||
|
||||
Reference in new issue
Block a user