commit | author | age
|
7a519e
|
1 |
<?xml version="1.0" encoding="utf-8"?> |
JK |
2 |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
3 |
android:layout_width="fill_parent" |
|
4 |
android:layout_height="fill_parent" |
|
5 |
android:layout_margin="10dp" |
|
6 |
android:orientation="vertical"> |
|
7 |
|
|
8 |
<SeekBar |
|
9 |
android:id="@+id/BidSlider" |
|
10 |
android:layout_width="match_parent" |
|
11 |
android:layout_height="wrap_content" |
|
12 |
android:indeterminate="false" |
|
13 |
android:max="7" /> |
|
14 |
|
|
15 |
<LinearLayout |
|
16 |
android:layout_width="match_parent" |
|
17 |
android:layout_height="wrap_content" |
|
18 |
android:gravity="center_vertical" |
|
19 |
android:orientation="horizontal" |
|
20 |
android:weightSum="1"> |
|
21 |
|
|
22 |
<TextView |
|
23 |
android:id="@+id/BidText" |
|
24 |
android:layout_width="wrap_content" |
|
25 |
android:layout_height="wrap_content" |
|
26 |
android:layout_gravity="center" |
|
27 |
android:layout_weight="0.25" |
|
28 |
android:text="0" |
|
29 |
android:textAlignment="gravity" |
|
30 |
android:textAppearance="?android:attr/textAppearanceLarge" /> |
|
31 |
|
|
32 |
<ToggleButton |
|
33 |
android:id="@+id/MinorSuitsToggle" |
|
34 |
android:layout_width="wrap_content" |
|
35 |
android:layout_height="wrap_content" |
|
36 |
android:layout_weight="0.25" |
|
37 |
android:checked="true" |
|
38 |
android:text="@string/minor_suits" |
|
39 |
android:textOff="@string/minor_suits" |
|
40 |
android:textOn="@string/minor_suits" /> |
|
41 |
|
|
42 |
<ToggleButton |
|
43 |
android:id="@+id/MajorSuitsToggle" |
|
44 |
android:layout_width="wrap_content" |
|
45 |
android:layout_height="wrap_content" |
|
46 |
android:layout_weight="0.25" |
|
47 |
android:checked="false" |
|
48 |
android:text="@string/major_suits" |
|
49 |
android:textOff="@string/major_suits" |
|
50 |
android:textOn="@string/major_suits" /> |
|
51 |
|
|
52 |
<ToggleButton |
|
53 |
android:id="@+id/NoTrumpToggle" |
|
54 |
android:layout_width="wrap_content" |
|
55 |
android:layout_height="wrap_content" |
|
56 |
android:layout_weight="0.25" |
|
57 |
android:checked="false" |
|
58 |
android:text="@string/no_trumph" |
|
59 |
android:textOff="@string/no_trumph" |
|
60 |
android:textOn="@string/no_trumph" /> |
|
61 |
</LinearLayout> |
|
62 |
|
|
63 |
<LinearLayout |
|
64 |
android:layout_width="match_parent" |
|
65 |
android:layout_height="wrap_content" |
|
66 |
android:orientation="horizontal"> |
|
67 |
|
|
68 |
<ToggleButton |
|
69 |
android:id="@+id/ContractToggle" |
|
70 |
android:layout_width="wrap_content" |
|
71 |
android:layout_height="wrap_content" |
|
72 |
android:layout_weight="1" |
|
73 |
android:checked="true" |
|
74 |
android:text="@string/bid_normal" |
|
75 |
android:textOff="@string/bid_normal" |
|
76 |
android:textOn="@string/bid_normal" /> |
|
77 |
|
|
78 |
<ToggleButton |
|
79 |
android:id="@+id/DoubleToggle" |
|
80 |
android:layout_width="wrap_content" |
|
81 |
android:layout_height="wrap_content" |
|
82 |
android:layout_weight="1" |
|
83 |
android:checked="false" |
|
84 |
android:text="@string/bid_double" |
|
85 |
android:textOff="@string/bid_double" |
|
86 |
android:textOn="@string/bid_double" /> |
|
87 |
|
|
88 |
<ToggleButton |
|
89 |
android:id="@+id/RedoubleToggle" |
|
90 |
android:layout_width="wrap_content" |
|
91 |
android:layout_height="wrap_content" |
|
92 |
android:layout_weight="1" |
|
93 |
android:checked="false" |
|
94 |
android:text="@string/bid_redouble" |
|
95 |
android:textOff="@string/bid_redouble" |
|
96 |
android:textOn="@string/bid_redouble" /> |
|
97 |
</LinearLayout> |
|
98 |
|
|
99 |
<LinearLayout |
|
100 |
android:layout_width="match_parent" |
|
101 |
android:layout_height="wrap_content" |
|
102 |
android:orientation="horizontal"> |
|
103 |
|
|
104 |
<ToggleButton |
|
105 |
android:id="@+id/NNToggle" |
|
106 |
android:layout_width="wrap_content" |
|
107 |
android:layout_height="wrap_content" |
|
108 |
android:layout_weight="1" |
|
109 |
android:checked="true" |
|
110 |
android:text="@string/before_before" |
|
111 |
android:textOff="@string/before_before" |
|
112 |
android:textOn="@string/before_before" /> |
|
113 |
|
|
114 |
<ToggleButton |
|
115 |
android:id="@+id/NVToggle" |
|
116 |
android:layout_width="wrap_content" |
|
117 |
android:layout_height="wrap_content" |
|
118 |
android:layout_weight="1" |
|
119 |
android:checked="false" |
|
120 |
android:text="@string/before_after" |
|
121 |
android:textOff="@string/before_after" |
|
122 |
android:textOn="@string/before_after" /> |
|
123 |
|
|
124 |
<ToggleButton |
|
125 |
android:id="@+id/VNToggle" |
|
126 |
android:layout_width="wrap_content" |
|
127 |
android:layout_height="wrap_content" |
|
128 |
android:layout_weight="1" |
|
129 |
android:checked="false" |
|
130 |
android:text="@string/after_before" |
|
131 |
android:textOff="@string/after_before" |
|
132 |
android:textOn="@string/after_before" /> |
|
133 |
|
|
134 |
<ToggleButton |
|
135 |
android:id="@+id/VVToggle" |
|
136 |
android:layout_width="wrap_content" |
|
137 |
android:layout_height="wrap_content" |
|
138 |
android:layout_weight="1" |
|
139 |
android:checked="false" |
|
140 |
android:text="@string/after_after" |
|
141 |
android:textOff="@string/after_after" |
|
142 |
android:textOn="@string/after_after" /> |
|
143 |
</LinearLayout> |
|
144 |
|
|
145 |
<LinearLayout |
|
146 |
android:layout_width="match_parent" |
|
147 |
android:layout_height="wrap_content" |
|
148 |
android:orientation="horizontal"> |
|
149 |
|
|
150 |
<TextView |
|
151 |
android:id="@+id/PCText" |
|
152 |
android:layout_width="wrap_content" |
|
153 |
android:layout_height="wrap_content" |
|
154 |
android:layout_marginRight="10dp" |
|
155 |
android:labelFor="@+id/PCInput" |
|
156 |
android:text="@string/pc" |
|
157 |
android:textAppearance="?android:attr/textAppearanceLarge" /> |
|
158 |
|
|
159 |
<EditText |
|
160 |
android:id="@+id/PCInput" |
|
161 |
android:layout_width="wrap_content" |
|
162 |
android:layout_height="wrap_content" |
|
163 |
android:ems="4" |
|
164 |
android:inputType="number" /> |
|
165 |
|
|
166 |
<Space |
|
167 |
android:layout_width="20dp" |
|
168 |
android:layout_height="wrap_content" /> |
|
169 |
|
|
170 |
<TextView |
|
171 |
android:id="@+id/TricksText" |
|
172 |
android:layout_width="wrap_content" |
|
173 |
android:layout_height="wrap_content" |
|
174 |
android:layout_marginRight="10dp" |
|
175 |
android:labelFor="@+id/TricksInput" |
|
176 |
android:text="@string/tricks" |
|
177 |
android:textAppearance="?android:attr/textAppearanceLarge" /> |
|
178 |
|
|
179 |
<EditText |
|
180 |
android:id="@+id/TricksInput" |
|
181 |
android:layout_width="wrap_content" |
|
182 |
android:layout_height="wrap_content" |
|
183 |
android:ems="4" |
|
184 |
android:inputType="number" /> |
|
185 |
</LinearLayout> |
|
186 |
|
|
187 |
<TextView |
|
188 |
android:id="@+id/ResultsText" |
|
189 |
android:layout_width="match_parent" |
|
190 |
android:layout_height="match_parent" |
|
191 |
android:layout_marginTop="10dp" |
|
192 |
android:text="@string/invalid_empty" |
|
193 |
android:textAppearance="?android:attr/textAppearanceMedium" /> |
|
194 |
</LinearLayout> |
|
195 |
|