used background borderless for nicer ripple effect (#189)

This commit is contained in:
Stephan Hagios 2018-01-22 21:36:14 +01:00 committed by m2049r
parent a0486f581f
commit a0b3a7fe5d
2 changed files with 3 additions and 24 deletions

View File

@ -18,8 +18,6 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:gravity="center"
android:tag="1"
android:text="1" />
@ -29,8 +27,6 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:gravity="center"
android:tag="2"
android:text="2" />
@ -40,8 +36,6 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:gravity="center"
android:tag="3"
android:text="3" />
</LinearLayout>
@ -50,7 +44,6 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center">
<TextView
@ -59,8 +52,6 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:gravity="center"
android:tag="4"
android:text="4" />
@ -70,8 +61,6 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:gravity="center"
android:tag="5"
android:text="5" />
@ -81,8 +70,6 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:gravity="center"
android:tag="6"
android:text="6" />
</LinearLayout>
@ -99,8 +86,6 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:gravity="center"
android:tag="7"
android:text="7" />
@ -110,8 +95,6 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:gravity="center"
android:tag="8"
android:text="8" />
@ -121,8 +104,6 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:gravity="center"
android:tag="9"
android:text="9" />
</LinearLayout>
@ -139,8 +120,6 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:gravity="center"
android:text="." />
<TextView
@ -149,8 +128,6 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:gravity="center"
android:tag="0"
android:text="0" />
@ -160,7 +137,7 @@
android:layout_height="36sp"
android:layout_gravity="center"
android:layout_weight="1"
android:background="?android:attr/selectableItemBackground"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:src="@drawable/ic_backspace_black_36dp" />
</LinearLayout>

View File

@ -119,6 +119,8 @@
<style name="MoneroLabel.NumPad">
<item name="android:textSize">36sp</item>
<item name="android:textColor">@color/moneroBlack</item>
<item name="android:background">?android:attr/selectableItemBackgroundBorderless</item>
<item name="android:gravity">center</item>
</style>
<style name="MoneroLabel.Title">