commit | author | age
|
b20e6d
|
1 |
<?xml version="1.0" encoding="utf-8"?> |
JK |
2 |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
3 |
android:orientation="vertical" |
|
4 |
android:layout_width="fill_parent" |
|
5 |
android:layout_height="fill_parent" |
|
6 |
> |
|
7 |
<LinearLayout |
|
8 |
android:orientation="vertical" |
|
9 |
android:layout_width="match_parent" |
|
10 |
android:layout_height="match_parent" android:layout_margin="10dp"> |
|
11 |
<SeekBar |
|
12 |
android:layout_width="match_parent" |
|
13 |
android:layout_height="wrap_content" |
|
14 |
android:id="@+id/BidSlider" android:max="7" android:indeterminate="false" |
|
15 |
/> |
|
16 |
<LinearLayout |
|
17 |
android:orientation="horizontal" |
|
18 |
android:layout_width="match_parent" |
|
19 |
android:layout_height="wrap_content" android:gravity="center_vertical" android:weightSum="1" |
|
20 |
> |
|
21 |
<TextView |
|
22 |
android:layout_width="wrap_content" |
|
23 |
android:layout_height="wrap_content" |
|
24 |
android:textAppearance="?android:attr/textAppearanceLarge" |
|
25 |
android:text="0" |
|
26 |
android:id="@+id/BidText" android:layout_weight="0.25" android:textAlignment="gravity" |
|
27 |
android:layout_gravity="center"/> |
|
28 |
<ToggleButton |
|
29 |
android:layout_width="wrap_content" |
|
30 |
android:layout_height="wrap_content" |
|
31 |
android:text="@string/clubs_or_diamonds" |
|
32 |
android:id="@+id/CDToggle" android:textOff="@string/clubs_or_diamonds" |
|
33 |
android:textOn="@string/clubs_or_diamonds" android:checked="true" android:layout_weight="0.25"/> |
|
34 |
<ToggleButton |
|
35 |
android:layout_width="wrap_content" |
|
36 |
android:layout_height="wrap_content" |
|
37 |
android:text="@string/hearts_or_spades" |
|
38 |
android:id="@+id/HSToggle" android:textOff="@string/hearts_or_spades" |
|
39 |
android:textOn="@string/hearts_or_spades" android:layout_weight="0.25" android:checked="false"/> |
|
40 |
<ToggleButton |
|
41 |
android:layout_width="wrap_content" |
|
42 |
android:layout_height="wrap_content" |
|
43 |
android:text="@string/no_trumph" |
|
44 |
android:id="@+id/NTToggle" android:textOff="@string/no_trumph" |
|
45 |
android:textOn="@string/no_trumph" android:layout_weight="0.25" android:checked="false"/> |
|
46 |
</LinearLayout> |
|
47 |
<LinearLayout |
|
48 |
android:orientation="horizontal" |
|
49 |
android:layout_width="match_parent" |
|
50 |
android:layout_height="wrap_content"> |
|
51 |
<ToggleButton |
|
52 |
android:layout_width="wrap_content" |
|
53 |
android:layout_height="wrap_content" |
|
54 |
android:text="@string/bid_normal" |
|
55 |
android:id="@+id/NormToggle" android:textOff="@string/bid_normal" |
|
56 |
android:textOn="@string/bid_normal" android:checked="true" android:layout_weight="1"/> |
|
57 |
<ToggleButton |
|
58 |
android:layout_width="wrap_content" |
|
59 |
android:layout_height="wrap_content" |
|
60 |
android:text="@string/bid_double" |
|
61 |
android:id="@+id/DblToggle" android:textOff="@string/bid_double" |
|
62 |
android:textOn="@string/bid_double" android:layout_weight="1" android:checked="false"/> |
|
63 |
<ToggleButton |
|
64 |
android:layout_width="wrap_content" |
|
65 |
android:layout_height="wrap_content" |
|
66 |
android:text="@string/bid_redouble" |
|
67 |
android:id="@+id/ReDblToggle" android:textOff="@string/bid_redouble" |
|
68 |
android:textOn="@string/bid_redouble" android:layout_weight="1" android:checked="false"/> |
|
69 |
</LinearLayout> |
|
70 |
<LinearLayout |
|
71 |
android:orientation="horizontal" |
|
72 |
android:layout_width="match_parent" |
|
73 |
android:layout_height="wrap_content"> |
|
74 |
<ToggleButton |
|
75 |
android:layout_width="wrap_content" |
|
76 |
android:layout_height="wrap_content" |
|
77 |
android:text="@string/before_before" |
|
78 |
android:id="@+id/BBToggle" android:textOff="@string/before_before" |
|
79 |
android:textOn="@string/before_before" android:layout_weight="1" android:checked="true"/> |
|
80 |
<ToggleButton |
|
81 |
android:layout_width="wrap_content" |
|
82 |
android:layout_height="wrap_content" |
|
83 |
android:text="@string/before_after" |
|
84 |
android:id="@+id/BAToggle" android:textOff="@string/before_after" |
|
85 |
android:textOn="@string/before_after" android:layout_weight="1" android:checked="false"/> |
|
86 |
<ToggleButton |
|
87 |
android:layout_width="wrap_content" |
|
88 |
android:layout_height="wrap_content" |
|
89 |
android:text="@string/after_before" |
|
90 |
android:id="@+id/ABToggle" android:textOff="@string/after_before" |
|
91 |
android:textOn="@string/after_before" android:layout_weight="1" android:checked="false"/> |
|
92 |
<ToggleButton |
|
93 |
android:layout_width="wrap_content" |
|
94 |
android:layout_height="wrap_content" |
|
95 |
android:text="@string/after_after" |
|
96 |
android:id="@+id/AAToggle" android:textOff="@string/after_after" |
|
97 |
android:textOn="@string/after_after" android:layout_weight="1" android:checked="false"/> |
|
98 |
</LinearLayout> |
|
99 |
<LinearLayout |
|
100 |
android:orientation="horizontal" |
|
101 |
android:layout_width="match_parent" |
|
102 |
android:layout_height="wrap_content"> |
|
103 |
<TextView |
|
104 |
android:layout_width="wrap_content" |
|
105 |
android:layout_height="wrap_content" |
|
106 |
android:textAppearance="?android:attr/textAppearanceLarge" |
|
107 |
android:text="@string/pc" |
|
108 |
android:id="@+id/PCText" android:labelFor="@+id/PCInput" android:layout_marginRight="10dp"/> |
|
109 |
<EditText |
|
110 |
android:layout_width="wrap_content" |
|
111 |
android:layout_height="wrap_content" |
|
112 |
android:inputType="number" |
|
113 |
android:id="@+id/PCInput" android:editable="false" android:ems="4"/> |
|
114 |
<Space |
|
115 |
android:layout_width="20dp" |
|
116 |
android:layout_height="wrap_content" |
|
117 |
/> |
|
118 |
<TextView |
|
119 |
android:layout_width="wrap_content" |
|
120 |
android:layout_height="wrap_content" |
|
121 |
android:textAppearance="?android:attr/textAppearanceLarge" |
|
122 |
android:text="@string/tricks" |
|
123 |
android:id="@+id/TricksText" android:labelFor="@+id/TricksInput" android:layout_marginRight="10dp"/> |
|
124 |
<EditText |
|
125 |
android:layout_width="wrap_content" |
|
126 |
android:layout_height="wrap_content" |
|
127 |
android:inputType="number" |
|
128 |
android:id="@+id/TricksInput" android:ems="4"/> |
|
129 |
</LinearLayout> |
|
130 |
<TextView |
|
131 |
android:layout_width="match_parent" |
|
132 |
android:layout_height="match_parent" |
|
133 |
android:textAppearance="?android:attr/textAppearanceMedium" |
|
134 |
android:id="@+id/resultText" android:text="@string/invalid_empty" android:layout_marginTop="10dp"/> |
|
135 |
</LinearLayout> |
|
136 |
</LinearLayout> |
|
137 |
|