11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3- xmlns : app =" http://schemas.android.com/apk/res-auto"
2+ <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
43 xmlns : tools =" http://schemas.android.com/tools"
54 android : layout_width =" match_parent"
65 android : layout_height =" match_parent"
6+ android : background =" @color/colorBackground"
77 tools : context =" .MainActivity" >
88
9+ <TableLayout
10+ android : id =" @+id/button_table"
11+ android : layout_width =" 330dp"
12+ android : layout_height =" 330dp"
13+ android : layout_centerInParent =" true"
14+ android : layout_margin =" 20dp" >
15+
16+ <TableRow
17+ android : layout_width =" wrap_content"
18+ android : layout_height =" match_parent" >
19+
20+ <Button
21+ android : id =" @+id/button00"
22+ style =" @style/game_btn"
23+ tools : text =" X" />
24+
25+ <Button
26+ android : id =" @+id/button01"
27+ style =" @style/game_btn"
28+ tools : text =" X" />
29+
30+ <Button
31+ android : id =" @+id/button02"
32+ style =" @style/game_btn"
33+ tools : text =" X" />
34+
35+ </TableRow >
36+
37+ <TableRow
38+ android : layout_width =" wrap_content"
39+ android : layout_height =" match_parent" >
40+
41+ <Button
42+ android : id =" @+id/button10"
43+ style =" @style/game_btn"
44+ tools : text =" X" />
45+
46+ <Button
47+ android : id =" @+id/button11"
48+ style =" @style/game_btn"
49+ tools : text =" X" />
50+
51+ <Button
52+ android : id =" @+id/button22"
53+ style =" @style/game_btn"
54+ tools : text =" X" />
55+
56+ </TableRow >
57+
58+ <TableRow
59+ android : layout_width =" wrap_content"
60+ android : layout_height =" match_parent" >
61+
62+ <Button
63+ android : id =" @+id/button30"
64+ style =" @style/game_btn"
65+ tools : text =" X" />
66+
67+ <Button
68+ android : id =" @+id/button31"
69+ style =" @style/game_btn"
70+ tools : text =" X" />
71+
72+ <Button
73+ android : id =" @+id/button32"
74+ style =" @style/game_btn"
75+ tools : text =" X" />
76+
77+ </TableRow >
78+
79+ </TableLayout >
80+
981 <TextView
82+ android : id =" @+id/game_state_view"
83+ android : layout_width =" wrap_content"
84+ android : layout_height =" wrap_content"
85+ android : layout_above =" @+id/button_table"
86+ android : layout_centerHorizontal =" true"
87+ android : textColor =" @color/colorText"
88+ android : textSize =" 24sp"
89+ android : textStyle =" bold"
90+ tools : text =" @string/x_turn" />
91+
92+ <Button
93+ android : id =" @+id/new_game_button"
1094 android : layout_width =" wrap_content"
1195 android : layout_height =" wrap_content"
12- android : text =" Hello World!"
13- app : layout_constraintBottom_toBottomOf =" parent"
14- app : layout_constraintEnd_toEndOf =" parent"
15- app : layout_constraintStart_toStartOf =" parent"
16- app : layout_constraintTop_toTopOf =" parent" />
96+ android : layout_below =" @+id/button_table"
97+ android : layout_alignEnd =" @+id/button_table"
98+ android : backgroundTint =" @color/colorBtn"
99+ android : text =" @string/new_game" />
17100
18- </androidx .constraintlayout.widget.ConstraintLayout >
101+ </RelativeLayout >
0 commit comments