summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/activity_setup.xml
blob: 5e3a4ccc92435a8723e0e17bd620fcf6b164a43f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        tools:context=".SetupActivity" android:orientation="vertical">

    <LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="match_parent" android:id="@+id/difficultyButtons">
        <Button
                android:text="Easy"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" android:id="@+id/selectEasy" android:layout_weight="1"/>
        <Button
                android:text="Intermediate"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" android:id="@+id/selectIntermediate" android:layout_weight="1"/>
        <Button
                android:text="Expert"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" android:id="@+id/selectExpert" android:layout_weight="1"/>
    </LinearLayout>
    <LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" android:id="@+id/widthRow">
        <TextView
                android:text="Width:"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" android:id="@+id/widthLabel" android:layout_weight="1"/>
        <EditText
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:inputType="number"
                android:ems="10"
                android:id="@+id/widthEntry" android:layout_weight="1" android:text="8"/>
    </LinearLayout>
    <LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="match_parent" android:id="@+id/heightRow">
        <TextView
                android:text="Height:"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" android:id="@+id/heightLabel" android:layout_weight="1"/>
        <EditText
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:inputType="number"
                android:ems="10"
                android:id="@+id/heightEntry" android:layout_weight="1" android:text="8"/>
    </LinearLayout>
    <LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="match_parent" android:id="@+id/minesRow">
        <TextView
                android:text="Mines:"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" android:id="@+id/minesLabel" android:layout_weight="1"/>
        <EditText
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:inputType="number"
                android:ems="10"
                android:id="@+id/minesEntry" android:layout_weight="1" android:text="10"/>
    </LinearLayout>
    <LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="match_parent" android:id="@+id/goRow" android:gravity="center">
        <Button
                android:text="Let's Do It!"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" android:id="@+id/goButton" android:layout_weight="1"
                android:maxWidth="64dp" android:width="64dp"/>
    </LinearLayout>
</LinearLayout>