Fix the send button's touch highlight color

Introduce a generic touch highlight background drawable, and use the
proper shades of blue (and gray on v19+).
fork-5.53.8
Veeti Paananen 2014-02-24 23:34:29 +02:00
rodzic a5c26b2e16
commit 633aa9b057
5 zmienionych plików z 8 dodań i 25 usunięć

Wyświetl plik

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- pressed -->
<item android:state_pressed="true" >
<shape>
<solid android:color="#FF33B5E5" />
</shape>
</item>
<!-- focused -->
<item android:state_focused="true" >
<shape>
<solid android:color="#FF33B5E5" />
</shape>
</item>
<!-- default -->
<item>
<shape>
<solid android:color="#00ffffff" />
</shape>
</item>
</selector>

Wyświetl plik

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

Wyświetl plik

@ -108,7 +108,7 @@
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_gravity="center_vertical"
android:background="@drawable/send_button_background"
android:background="@drawable/touch_highlight_background"
android:contentDescription="@string/conversation_activity__send"
android:nextFocusLeft="@+id/embedded_text_editor"
android:padding="12dp"

Wyświetl plik

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="touch_highlight">#10000000</color>
<color name="card_background_active">#99bebebe</color>
</resources>

Wyświetl plik

@ -11,6 +11,7 @@
<color name="textsecure_holo_blue_light">#ff33b5e5</color>
<color name="touch_highlight">#400099cc</color>
<color name="card_background_active">#9933b5e5</color>
<color name="conversation_item_sent_background_dark">#ff284e0a</color>