Skip to content

Commit 49f8d20

Browse files
committed
more polishing
1 parent 5f6378e commit 49f8d20

19 files changed

+1341
-211
lines changed

res/drawable/ic_menu_search.png

4.94 KB
Loading

res/layout/replay_game.xml

Lines changed: 95 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,115 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:orientation="vertical"
43
android:layout_width="fill_parent"
54
android:layout_height="fill_parent"
6-
>
5+
android:orientation="vertical" >
6+
77
<com.ysaito.shogi.GameStatusView
8-
android:id="@+id/replay_gamestatusview"
9-
xmlns:android="http://schemas.android.com/apk/res/android"
10-
android:orientation="vertical"
11-
android:layout_width="fill_parent"
12-
android:layout_height="wrap_content">
8+
xmlns:android="http://schemas.android.com/apk/res/android"
9+
android:id="@+id/replay_gamestatusview"
10+
android:layout_width="fill_parent"
11+
android:layout_height="wrap_content"
12+
android:orientation="vertical" >
13+
1314
<LinearLayout
14-
android:orientation="horizontal"
15-
android:layout_width="fill_parent"
16-
android:layout_height="wrap_content">
17-
<TextView
18-
android:id="@+id/status_game_status"
19-
android:layout_weight="0"
20-
android:textSize="12dp"
21-
android:layout_width="50dp"
22-
android:layout_height="wrap_content"/>
23-
<TextView
24-
android:id="@+id/status_play_history"
25-
android:maxLines="1"
26-
android:layout_weight="1"
27-
android:textSize="12dp"
28-
android:gravity="right"
2915
android:layout_width="fill_parent"
30-
android:layout_height="wrap_content"/>
16+
android:layout_height="wrap_content"
17+
android:orientation="horizontal" >
18+
19+
<TextView
20+
android:id="@+id/status_game_status"
21+
android:layout_width="50dp"
22+
android:layout_height="wrap_content"
23+
android:layout_weight="0"
24+
android:textSize="12dp" />
25+
26+
<TextView
27+
android:id="@+id/status_play_history"
28+
android:layout_width="fill_parent"
29+
android:layout_height="wrap_content"
30+
android:layout_weight="1"
31+
android:gravity="right"
32+
android:maxLines="1"
33+
android:textSize="12dp" />
3134
</LinearLayout>
35+
3236
<LinearLayout
33-
android:orientation="horizontal"
34-
android:layout_width="wrap_content"
35-
android:layout_height="wrap_content">
37+
android:layout_width="wrap_content"
38+
android:layout_height="wrap_content"
39+
android:orientation="horizontal" >
40+
3641
<TextView
37-
android:id="@+id/status_black_time"
38-
android:gravity="top|right"
39-
android:layout_weight="0"
40-
android:textSize="12dp"
41-
android:layout_width="70dp"
42-
android:layout_height="wrap_content"/>
42+
android:id="@+id/status_black_time"
43+
android:layout_width="70dp"
44+
android:layout_height="wrap_content"
45+
android:layout_weight="0"
46+
android:gravity="top|right"
47+
android:textSize="12dp" />
48+
4349
<TextView
44-
android:id="@+id/status_black_player_name"
45-
android:gravity="top|left"
46-
android:layout_weight="0"
47-
android:textSize="12dp"
48-
android:layout_width="80dp"
49-
android:layout_height="wrap_content"/>
50+
android:id="@+id/status_black_player_name"
51+
android:layout_width="80dp"
52+
android:layout_height="wrap_content"
53+
android:layout_weight="0"
54+
android:gravity="top|left"
55+
android:textSize="12dp" />
56+
5057
<TextView
51-
android:id="@+id/status_white_time"
52-
android:gravity="top|right"
53-
android:textSize="12dp"
54-
android:layout_weight="0"
55-
android:layout_width="70dp"
56-
android:layout_height="wrap_content"/>
58+
android:id="@+id/status_white_time"
59+
android:layout_width="70dp"
60+
android:layout_height="wrap_content"
61+
android:layout_weight="0"
62+
android:gravity="top|right"
63+
android:textSize="12dp" />
64+
5765
<TextView
58-
android:id="@+id/status_white_player_name"
59-
android:gravity="top|left"
60-
android:layout_weight="20"
61-
android:textSize="12dp"
62-
android:layout_width="80dp"
63-
android:layout_height="wrap_content"/>
66+
android:id="@+id/status_white_player_name"
67+
android:layout_width="80dp"
68+
android:layout_height="wrap_content"
69+
android:layout_weight="20"
70+
android:gravity="top|left"
71+
android:textSize="12dp" />
72+
6473
</LinearLayout>
6574
</com.ysaito.shogi.GameStatusView>
66-
<com.ysaito.shogi.BoardView
67-
android:id="@+id/replay_boardview"
68-
android:layout_width="fill_parent"
69-
android:layout_height="1dp"
70-
android:layout_weight="1"
71-
android:layout_gravity="top|fill_vertical"
72-
/>
75+
76+
<com.ysaito.shogi.BoardView
77+
android:id="@+id/replay_boardview"
78+
android:layout_width="fill_parent"
79+
android:layout_height="1dp"
80+
android:layout_gravity="top|fill_vertical"
81+
android:layout_weight="1" />
82+
7383
<TableLayout
74-
android:stretchColumns="1"
75-
android:layout_width="match_parent"
76-
android:layout_height="wrap_content">
84+
android:layout_width="match_parent"
85+
android:layout_height="wrap_content"
86+
android:stretchColumns="1"
87+
android:layout_weight="0.1" >
88+
7789
<TableRow>
78-
<ImageButton android:id="@+id/replay_prev_button"
79-
android:layout_width="wrap_content"
80-
android:layout_height="32dp"
81-
android:longClickable="true"
82-
android:src="@drawable/ic_media_back"
83-
android:background="@drawable/button_background" />
84-
<SeekBar android:id="@+id/replay_seek_bar"
85-
android:layout_width="wrap_content"
86-
android:layout_height="wrap_content"
87-
android:max="1000"/>
88-
<ImageButton android:id="@+id/replay_next_button"
89-
android:layout_width="wrap_content"
90-
android:layout_height="32dp"
91-
android:longClickable="true"
92-
android:src="@drawable/ic_media_play"
93-
android:background="@drawable/button_background" />
90+
91+
<ImageButton
92+
android:id="@+id/replay_prev_button"
93+
android:layout_width="wrap_content"
94+
android:layout_height="32dp"
95+
android:background="@drawable/button_background"
96+
android:longClickable="true"
97+
android:src="@drawable/ic_media_back" />
98+
99+
<SeekBar
100+
android:id="@+id/replay_seek_bar"
101+
android:layout_width="wrap_content"
102+
android:layout_height="wrap_content"
103+
android:max="1000" />
104+
105+
<ImageButton
106+
android:id="@+id/replay_next_button"
107+
android:layout_width="wrap_content"
108+
android:layout_height="32dp"
109+
android:background="@drawable/button_background"
110+
android:longClickable="true"
111+
android:src="@drawable/ic_media_play" />
112+
94113
</TableRow>
95114
</TableLayout>
96115
</LinearLayout>

0 commit comments

Comments
 (0)