single_match_activity.xml 7.62 KB
Newer Older
rakam's avatar
rakam committed
1
2
<?xml version="1.0" encoding="utf-8"?>

rakam's avatar
rakam committed
3
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
rakam's avatar
rakam committed
4
5
    android:layout_width="match_parent"
    android:layout_height="match_parent"
rakam's avatar
rakam committed
6
    android:background="#dadada">
rakam's avatar
rakam committed
7

rakam's avatar
rakam committed
8
    <TextView
9
        android:id="@+id/categorie"
rakam's avatar
rakam committed
10
11
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
rakam's avatar
rakam committed
12
13
14
15
16
17
18
        android:layout_centerHorizontal="true"
        android:layout_marginTop="4dp"
        android:text="MEN'S SINGLE 1/2 "
        android:textSize="18sp"
        android:textStyle="bold" />

    <ImageView
rakam's avatar
rakam committed
19
        android:id="@+id/playerLeftPhoto"
rakam's avatar
rakam committed
20
21
22
        android:layout_width="82dp"
        android:layout_height="90dp"
        android:layout_margin="8dp"
rakam's avatar
rakam committed
23
        android:scaleType="centerCrop" />
rakam's avatar
rakam committed
24
25

    <TextView
rakam's avatar
rakam committed
26
        android:id="@+id/playerLeftNameTV"
rakam's avatar
rakam committed
27
28
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
rakam's avatar
rakam committed
29
30
        android:layout_alignTop="@id/playerLeftPhoto"
        android:layout_toRightOf="@id/playerLeftPhoto"
rakam's avatar
rakam committed
31
32
33
34
35
        android:text="Joueur A"
        android:textSize="20sp"
        android:textStyle="bold" />

    <TextView
rakam's avatar
rakam committed
36
        android:id="@+id/playerLeftNatTV"
rakam's avatar
rakam committed
37
38
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
rakam's avatar
rakam committed
39
40
        android:layout_below="@id/playerLeftNameTV"
        android:layout_toRightOf="@id/playerLeftPhoto"
rakam's avatar
rakam committed
41
42
        android:text="(SU)" />

rakam's avatar
rakam committed
43
    <fr.istic.masteru.android.views.SecureDelayButton
rakam's avatar
rakam committed
44
        android:id="@+id/pointLeftButton"
rakam's avatar
rakam committed
45
46
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
rakam's avatar
rakam committed
47
        android:layout_below="@id/playerLeftPhoto"
rakam's avatar
rakam committed
48
49
50
51
52
53
54
        android:layout_marginTop="10dp"
        android:background="@drawable/left_button"
        android:paddingBottom="20dp"
        android:paddingLeft="50dp"
        android:paddingRight="50dp"
        android:paddingTop="20dp"
        android:text="Point"
55
        android:textColor="#ddd" />
rakam's avatar
rakam committed
56
57

    <ImageView
rakam's avatar
rakam committed
58
        android:id="@+id/playerRightPhoto"
rakam's avatar
rakam committed
59
60
61
62
        android:layout_width="82dp"
        android:layout_height="90dp"
        android:layout_alignParentRight="true"
        android:layout_margin="8dp"
rakam's avatar
rakam committed
63
        android:scaleType="centerCrop" />
rakam's avatar
rakam committed
64
65

    <TextView
rakam's avatar
rakam committed
66
        android:id="@+id/playerRightNameTV"
rakam's avatar
rakam committed
67
68
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
rakam's avatar
rakam committed
69
70
        android:layout_alignTop="@id/playerRightPhoto"
        android:layout_toLeftOf="@id/playerRightPhoto"
rakam's avatar
rakam committed
71
72
73
74
75
        android:text="Joueur B"
        android:textSize="20sp"
        android:textStyle="bold" />

    <TextView
rakam's avatar
rakam committed
76
        android:id="@+id/playerRightNatTV"
rakam's avatar
rakam committed
77
78
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
rakam's avatar
rakam committed
79
80
        android:layout_below="@id/playerRightNameTV"
        android:layout_toLeftOf="@id/playerRightPhoto"
rakam's avatar
rakam committed
81
82
        android:text="(FR)" />

rakam's avatar
rakam committed
83
    <fr.istic.masteru.android.views.SecureDelayButton
rakam's avatar
rakam committed
84
        android:id="@+id/pointRightButton"
rakam's avatar
rakam committed
85
86
87
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
rakam's avatar
rakam committed
88
        android:layout_below="@id/playerRightPhoto"
rakam's avatar
rakam committed
89
90
91
92
93
94
95
        android:layout_marginTop="10dp"
        android:background="@drawable/right_button"
        android:paddingBottom="20dp"
        android:paddingLeft="50dp"
        android:paddingRight="50dp"
        android:paddingTop="20dp"
        android:text="Point"
96
        android:textColor="#ddd" />
rakam's avatar
rakam committed
97
98

    <TextView
99
        android:id="@+id/_scoreMiddle"
rakam's avatar
rakam committed
100
101
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
rakam's avatar
rakam committed
102
        android:layout_below="@id/playerLeftNatTV"
rakam's avatar
rakam committed
103
104
105
        android:layout_centerHorizontal="true"
        android:layout_marginLeft="5dp"
        android:layout_marginRight="5dp"
106
        android:text="-"
107
        android:textSize="34sp"
108
109
110
        android:textStyle="bold" />

    <TextView
rakam's avatar
rakam committed
111
        android:id="@+id/scoreLeft"
112
113
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
rakam's avatar
rakam committed
114
        android:layout_below="@id/playerLeftNatTV"
115
116
117
        android:layout_marginLeft="5dp"
        android:layout_marginRight="5dp"
        android:layout_toLeftOf="@id/_scoreMiddle"
rakam's avatar
rakam committed
118
        android:text="0"
119
        android:textSize="35sp"
120
121
122
        android:textStyle="bold" />

    <TextView
rakam's avatar
rakam committed
123
        android:id="@+id/scoreRight"
124
125
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
rakam's avatar
rakam committed
126
        android:layout_below="@id/playerLeftNatTV"
127
128
129
130
        android:layout_marginLeft="5dp"
        android:layout_marginRight="5dp"
        android:layout_toRightOf="@id/_scoreMiddle"
        android:text="0"
131
        android:textSize="35sp"
rakam's avatar
rakam committed
132
133
134
        android:textStyle="bold" />

    <ImageView
rakam's avatar
rakam committed
135
        android:id="@+id/serviceLeft"
rakam's avatar
rakam committed
136
137
        android:layout_width="26dp"
        android:layout_height="0px"
138
        android:layout_alignBottom="@id/_scoreMiddle"
rakam's avatar
rakam committed
139
140
        android:layout_below="@id/playerLeftNatTV"
        android:layout_toLeftOf="@id/scoreLeft"
rakam's avatar
rakam committed
141
142
143
        android:src="@drawable/tennis_ball" />

    <ImageView
rakam's avatar
rakam committed
144
        android:id="@+id/serviceRight"
rakam's avatar
rakam committed
145
146
        android:layout_width="26dp"
        android:layout_height="0px"
147
        android:layout_alignBottom="@id/_scoreMiddle"
rakam's avatar
rakam committed
148
149
        android:layout_below="@id/playerLeftNatTV"
        android:layout_toRightOf="@id/scoreRight"
rakam's avatar
rakam committed
150
151
152
153
154
155
156
        android:src="@drawable/tennis_ball"
        android:visibility="gone" />

    <View
        android:layout_width="1px"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
157
        android:layout_below="@id/_scoreMiddle"
rakam's avatar
rakam committed
158
159
160
        android:layout_centerHorizontal="true"
        android:background="#999" />

rakam's avatar
rakam committed
161
162
163
164
165
166
167
168
169
170
171
172
173
    <Button
        android:id="@+id/optionsButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/footer"
        android:layout_centerHorizontal="true"
        android:background="@drawable/grey_button"
        android:paddingBottom="4dp"
        android:paddingLeft="22dp"
        android:paddingRight="22dp"
        android:paddingTop="4dp"
        android:text="@string/options" />

rakam's avatar
rakam committed
174
175
176
177
178
179
    <RelativeLayout
        android:id="@+id/footer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="#333">
rakam's avatar
rakam committed
180

181
182
        <fr.istic.masteru.android.views.MatchScoreView
            android:id="@+id/matchScoreView"
rakam's avatar
rakam committed
183
184
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
rakam's avatar
rakam committed
185
            android:layout_centerVertical="true"
186
            android:layout_marginLeft="6dp" />
rakam's avatar
rakam committed
187
188


rakam's avatar
rakam committed
189
190
191
192
193
        <Button
            android:id="@+id/back"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="4dp"
194
            android:layout_toRightOf="@+id/matchScoreView"
rakam's avatar
rakam committed
195
196
197
            android:background="@drawable/dark_button"
            android:paddingLeft="16dp"
            android:paddingRight="16dp"
rakam's avatar
rakam committed
198
            android:text="« Retour au point précédent"
rakam's avatar
rakam committed
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
            android:textColor="@color/white"
            android:textSize="18sp"
            android:textStyle="bold" />

        <Button
            android:id="@+id/gameTime"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_margin="4dp"
            android:background="@drawable/dark_button"
            android:paddingLeft="16dp"
            android:paddingRight="16dp"
            android:text="0:54"
            android:textColor="@color/white"
            android:textSize="18sp"
rakam's avatar
rakam committed
215
216
            android:textStyle="bold"
            android:visibility="invisible" />
rakam's avatar
rakam committed
217
218
219
220

    </RelativeLayout>

</RelativeLayout>