Commit 95df402a authored by Andreas Schildbach's avatar Andreas Schildbach

wallet_actions_fragment.xml: Style scan action button like if it were a floating action button.

parent f4a588f4
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval" >
<solid android:color="@color/bg_action_bar" />
</shape>
......@@ -31,10 +31,12 @@
<ImageButton
android:id="@+id/wallet_actions_send_qr"
style="@style/My.Widget.ActionButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/My.Widget.ActionButton.Floating"
android:layout_width="42dp"
android:layout_height="42dp"
android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/list_entry_padding_horizontal_cram"
android:layout_marginRight="@dimen/list_entry_padding_horizontal_cram"
android:contentDescription="@string/button_scan"
android:src="@drawable/ic_photo_camera_white_24dp" />
......
......@@ -75,6 +75,12 @@
<item name="android:tint">@color/fg_network_significant</item>
</style>
<style name="My.Widget.ActionButton.Floating" parent="@android:style/Widget.Material.ActionButton">
<item name="android:tint">@android:color/black</item>
<item name="android:background">@drawable/floating_action_button_background</item>
<item name="android:backgroundTint">@color/fg_network_significant</item>
</style>
<style name="My.Widget.ActionMode" parent="@android:style/Widget.Material.Light.ActionMode">
<item name="android:background">@drawable/action_mode_background</item>
<item name="android:titleTextStyle">@style/My.TextAppearance.Widget.ActionMode.Title</item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment