summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2019-06-08 12:33:45 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2019-06-17 10:14:36 +0000
commitf366b5b6d7792fe0be549a1b30334ac31a3b2d17 (patch)
tree02bd5e8504567357190da29027b4545be9efd6bb /android
parentf1b6e9097a5fdc7fe822d85fab5bb550c0447a14 (diff)
downloadmullvadvpn-f366b5b6d7792fe0be549a1b30334ac31a3b2d17.tar.xz
mullvadvpn-f366b5b6d7792fe0be549a1b30334ac31a3b2d17.zip
Make the Account settings entry clickable
Diffstat (limited to 'android')
-rw-r--r--android/src/main/res/drawable/cell_button_background.xml14
-rw-r--r--android/src/main/res/layout/settings.xml3
-rw-r--r--android/src/main/res/values/colors.xml1
3 files changed, 17 insertions, 1 deletions
diff --git a/android/src/main/res/drawable/cell_button_background.xml b/android/src/main/res/drawable/cell_button_background.xml
new file mode 100644
index 0000000000..8791c01141
--- /dev/null
+++ b/android/src/main/res/drawable/cell_button_background.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_pressed="false">
+ <shape android:shape="rectangle">
+ <solid android:color="@color/blue"/>
+ </shape>
+ </item>
+
+ <item android:state_pressed="true">
+ <shape android:shape="rectangle">
+ <solid android:color="@color/blue80"/>
+ </shape>
+ </item>
+</selector>
diff --git a/android/src/main/res/layout/settings.xml b/android/src/main/res/layout/settings.xml
index f595604fda..7bbeb591df 100644
--- a/android/src/main/res/layout/settings.xml
+++ b/android/src/main/res/layout/settings.xml
@@ -31,7 +31,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="16dp"
- android:background="@color/blue"
+ android:background="@drawable/cell_button_background"
+ android:clickable="true"
android:gravity="center"
>
<TextView
diff --git a/android/src/main/res/values/colors.xml b/android/src/main/res/values/colors.xml
index 7d2ef85101..0e7b0cea4e 100644
--- a/android/src/main/res/values/colors.xml
+++ b/android/src/main/res/values/colors.xml
@@ -1,6 +1,7 @@
<resources>
<color name="colorPrimary">#294D73</color>
<color name="blue">#294D73</color>
+ <color name="blue80">#CC294D73</color>
<color name="blue40">#66294D73</color>
<color name="blue20">#33294D73</color>
<color name="darkBlue">#192E45</color>