summaryrefslogtreecommitdiffhomepage
path: root/android/src
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-09-07 14:04:28 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-09-21 15:28:41 +0000
commitaae401cca90e418a6d820b00af0c83143e8c646d (patch)
tree1fd8bbbc72d5a27ba12a13bf10a20a3265d2dabe /android/src
parente3d905436c2946cdf22ec0d7c446d3d8504eb308 (diff)
downloadmullvadvpn-aae401cca90e418a6d820b00af0c83143e8c646d.tar.xz
mullvadvpn-aae401cca90e418a6d820b00af0c83143e8c646d.zip
Highlight entry when it is focused or pressed
Diffstat (limited to 'android/src')
-rw-r--r--android/src/main/res/drawable/account_history_entry_background.xml20
-rw-r--r--android/src/main/res/layout/account_history_entry.xml2
2 files changed, 21 insertions, 1 deletions
diff --git a/android/src/main/res/drawable/account_history_entry_background.xml b/android/src/main/res/drawable/account_history_entry_background.xml
new file mode 100644
index 0000000000..ea25d2b72a
--- /dev/null
+++ b/android/src/main/res/drawable/account_history_entry_background.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle">
+ <item android:state_pressed="false"
+ android:state_focused="false">
+ <shape android:shape="rectangle">
+ <solid android:color="@color/white60" />
+ </shape>
+ </item>
+ <item android:state_pressed="true">
+ <shape android:shape="rectangle">
+ <solid android:color="@color/white40" />
+ </shape>
+ </item>
+ <item android:state_focused="true">
+ <shape android:shape="rectangle">
+ <solid android:color="@color/white40" />
+ </shape>
+ </item>
+</selector>
diff --git a/android/src/main/res/layout/account_history_entry.xml b/android/src/main/res/layout/account_history_entry.xml
index 47e723bb4c..440cce957d 100644
--- a/android/src/main/res/layout/account_history_entry.xml
+++ b/android/src/main/res/layout/account_history_entry.xml
@@ -5,7 +5,7 @@
<TextView android:id="@+id/account_history_entry_text_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/white60"
+ android:background="@drawable/account_history_entry_background"
android:paddingHorizontal="12dp"
android:gravity="center_vertical"
android:textColor="@color/blue80"