Skip to content

Commit 36978b8

Browse files
committed
add screenshot, refactor xml
1 parent 0c10bbd commit 36978b8

File tree

4 files changed

+24
-25
lines changed

4 files changed

+24
-25
lines changed

.idea/misc.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
75.9 KB
Loading

app/src/main/res/layout-land/activity_main.xml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@
66
android:background="@color/colorBackground"
77
tools:context=".MainActivity">
88

9+
<TextView
10+
android:id="@+id/game_state_view"
11+
android:layout_width="wrap_content"
12+
android:layout_height="wrap_content"
13+
android:layout_alignParentStart="true"
14+
android:layout_centerInParent="true"
15+
android:layout_toStartOf="@+id/button_table"
16+
android:textAlignment="center"
17+
android:textColor="@color/colorText"
18+
android:textSize="24sp"
19+
android:textStyle="bold"
20+
tools:text="@string/x_turn" />
21+
922
<TableLayout
1023
android:id="@+id/button_table"
1124
android:layout_width="300dp"
@@ -78,19 +91,6 @@
7891

7992
</TableLayout>
8093

81-
<TextView
82-
android:id="@+id/game_state_view"
83-
android:layout_width="wrap_content"
84-
android:layout_height="wrap_content"
85-
android:layout_alignParentStart="true"
86-
android:layout_centerInParent="true"
87-
android:layout_toStartOf="@+id/button_table"
88-
android:textAlignment="center"
89-
android:textColor="@color/colorText"
90-
android:textSize="24sp"
91-
android:textStyle="bold"
92-
tools:text="@string/x_turn" />
93-
9494
<Button
9595
android:id="@+id/new_game_button"
9696
android:layout_width="wrap_content"

app/src/main/res/layout/activity_main.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@
66
android:background="@color/colorBackground"
77
tools:context=".MainActivity">
88

9+
<TextView
10+
android:id="@+id/game_state_view"
11+
android:layout_width="wrap_content"
12+
android:layout_height="wrap_content"
13+
android:layout_above="@+id/button_table"
14+
android:layout_centerHorizontal="true"
15+
android:textColor="@color/colorText"
16+
android:textSize="30sp"
17+
android:textStyle="bold"
18+
tools:text="@string/x_turn" />
19+
920
<TableLayout
1021
android:id="@+id/button_table"
1122
android:layout_width="330dp"
@@ -78,17 +89,6 @@
7889

7990
</TableLayout>
8091

81-
<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-
9292
<Button
9393
android:id="@+id/new_game_button"
9494
android:layout_width="wrap_content"

0 commit comments

Comments
 (0)