diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-01-28 18:10:45 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-02-10 15:40:36 +0000 |
| commit | b361f24f32843dfadf39a3590f8aa66dff1db84c (patch) | |
| tree | 4ee9bf5e9c5aced2f2e58e6c94fd372524a4706e /android/src/main/res/drawable | |
| parent | 0d9611d8f799598ff8c12d457d87f2a872089919 (diff) | |
| download | mullvadvpn-b361f24f32843dfadf39a3590f8aa66dff1db84c.tar.xz mullvadvpn-b361f24f32843dfadf39a3590f8aa66dff1db84c.zip | |
Create `CellSwitch` widget
Diffstat (limited to 'android/src/main/res/drawable')
| -rw-r--r-- | android/src/main/res/drawable/cell_switch_background.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/android/src/main/res/drawable/cell_switch_background.xml b/android/src/main/res/drawable/cell_switch_background.xml new file mode 100644 index 0000000000..71f6fe0802 --- /dev/null +++ b/android/src/main/res/drawable/cell_switch_background.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<selector + xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" + > + <item android:state_enabled="false"> + <shape android:shape="rectangle"> + <corners android:radius="@dimen/cell_switch_border_radius"/> + <stroke android:color="@color/white20" android:width="2dp"/> + <size + android:width="@dimen/cell_switch_width" + android:height="@dimen/cell_switch_height" + /> + </shape> + </item> + + <item android:state_enabled="true"> + <shape android:shape="rectangle"> + <corners android:radius="@dimen/cell_switch_border_radius"/> + <stroke android:color="@color/white" android:width="2dp"/> + <size + android:width="@dimen/cell_switch_width" + android:height="@dimen/cell_switch_height" + /> + </shape> + </item> +</selector> |
