Skip to content
This repository was archived by the owner on Jan 1, 2023. It is now read-only.

Commit 43272e6

Browse files
Added tap button
1 parent e8f7810 commit 43272e6

File tree

7 files changed

+39
-5
lines changed

7 files changed

+39
-5
lines changed
573 Bytes
Loading
310 Bytes
Loading
694 Bytes
Loading
Loading
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:shape="rectangle">
4+
<stroke
5+
android:width="1dp"
6+
android:color="@color/SecondaryText" />
7+
</shape>

mobile/src/main/res/layout/dialog_custom.xml

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,24 @@
99
android:paddingRight="@dimen/activity_horizontal_margin"
1010
android:paddingTop="@dimen/activity_vertical_margin">
1111

12+
<ImageButton
13+
android:id="@+id/dialogButtonRevert"
14+
android:layout_width="wrap_content"
15+
android:layout_height="wrap_content"
16+
android:layout_alignParentEnd="true"
17+
android:layout_alignParentTop="true"
18+
android:background="?android:attr/selectableItemBackground"
19+
android:src="@drawable/ic_revert" />
20+
1221
<Button
1322
android:id="@+id/dialogButtonSave"
1423
android:layout_width="wrap_content"
1524
android:layout_height="wrap_content"
1625
android:layout_alignParentBottom="true"
1726
android:layout_alignParentEnd="true"
1827
android:background="?android:attr/selectableItemBackground"
19-
android:text="@string/save_pattern" />
28+
android:text="@string/save_pattern"
29+
android:textColor="@color/Accent" />
2030

2131
<Button
2232
android:id="@+id/dialogButtonCancel"
@@ -25,7 +35,8 @@
2535
android:layout_alignParentBottom="true"
2636
android:layout_toStartOf="@id/dialogButtonSave"
2737
android:background="?android:attr/selectableItemBackground"
28-
android:text="@string/cancel_pattern" />
38+
android:text="@string/cancel_pattern"
39+
android:textColor="@color/Accent" />
2940

3041
<Button
3142
android:id="@+id/dialogButtonTry"
@@ -34,11 +45,26 @@
3445
android:layout_alignParentBottom="true"
3546
android:layout_alignParentStart="true"
3647
android:background="?android:attr/selectableItemBackground"
37-
android:text="@string/try_pattern" />
48+
android:text="@string/try_pattern"
49+
android:textColor="@color/Accent" />
3850

39-
<TextView
51+
<LinearLayout
4052
android:layout_width="fill_parent"
4153
android:layout_height="fill_parent"
4254
android:layout_above="@id/dialogButtonSave"
43-
android:text="Test" />
55+
android:layout_below="@id/dialogButtonRevert"
56+
android:background="@drawable/frame"
57+
android:padding="4dp">
58+
59+
<Button
60+
android:id="@+id/dialogButtonTap"
61+
android:layout_width="fill_parent"
62+
android:layout_height="fill_parent"
63+
android:background="?android:attr/selectableItemBackground"
64+
android:text="@string/tap_pattern"
65+
android:textColor="@color/SecondaryText"
66+
android:textAllCaps="false"
67+
android:textSize="32sp" />
68+
</LinearLayout>
69+
4470
</RelativeLayout>

mobile/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@
3636
<string name="save_pattern">Save</string>
3737
<string name="cancel_pattern">Cancel</string>
3838
<string name="try_pattern">Try</string>
39+
<string name="tap_pattern">Tap a pattern</string>
3940

4041
</resources>

0 commit comments

Comments
 (0)