Revision 4235de9b
Added by Leszek Koltunski over 4 years ago
src/main/res/layout/dialog_main.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="utf-8"?> |
2 | 2 |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 |
android:layout_width="match_parent" |
|
4 |
android:layout_height="match_parent" |
|
5 |
android:gravity="center_horizontal" |
|
6 |
android:orientation="vertical"> |
|
3 |
android:layout_width="fill_parent" |
|
4 |
android:layout_height="fill_parent" |
|
5 |
android:gravity="center|fill_horizontal" |
|
6 |
android:layout_marginLeft="10dp" |
|
7 |
android:layout_marginRight="10dp" |
|
8 |
android:layout_marginTop="10dp" |
|
9 |
android:layout_marginBottom="10dp" |
|
10 |
android:background="@color/grey" |
|
11 |
android:orientation="vertical"> |
|
7 | 12 |
|
13 |
<Button |
|
14 |
android:id="@+id/rubikPlay" |
|
15 |
android:layout_width="fill_parent" |
|
16 |
android:layout_height="fill_parent" |
|
17 |
android:layout_weight="1" |
|
18 |
android:onClick="Play" |
|
19 |
android:layout_marginTop="10dp" |
|
20 |
android:layout_marginLeft="10dp" |
|
21 |
android:layout_marginRight="10dp" |
|
22 |
android:text="@string/play" /> |
|
8 | 23 |
|
9 |
<LinearLayout
|
|
10 |
android:layout_width="fill_parent"
|
|
11 |
android:layout_height="fill_parent"
|
|
12 |
android:gravity="center|fill_horizontal"
|
|
13 |
android:layout_marginLeft="10dp"
|
|
14 |
android:layout_marginRight="10dp"
|
|
15 |
android:layout_marginTop="20dp"
|
|
16 |
android:background="@color/grey"
|
|
17 |
android:orientation="vertical">
|
|
24 |
<Button
|
|
25 |
android:id="@+id/rubikSettings"
|
|
26 |
android:layout_width="fill_parent"
|
|
27 |
android:layout_height="fill_parent"
|
|
28 |
android:layout_weight="1"
|
|
29 |
android:onClick="Settings"
|
|
30 |
android:layout_marginLeft="10dp"
|
|
31 |
android:layout_marginRight="10dp"
|
|
32 |
android:text="@string/settings" />
|
|
18 | 33 |
|
19 |
<TextView
|
|
20 |
android:layout_width="match_parent"
|
|
21 |
android:layout_height="fill_parent"
|
|
22 |
android:layout_weight="0.40"
|
|
23 |
android:layout_marginTop="10dp"
|
|
24 |
android:layout_marginLeft="10dp"
|
|
25 |
android:layout_marginRight="10dp"
|
|
26 |
android:layout_marginBottom="10dp"
|
|
27 |
android:text="@string/credits1"/>
|
|
34 |
<Button
|
|
35 |
android:id="@+id/rubikScores"
|
|
36 |
android:layout_width="fill_parent"
|
|
37 |
android:layout_height="fill_parent"
|
|
38 |
android:layout_weight="1"
|
|
39 |
android:onClick="Scores"
|
|
40 |
android:layout_marginLeft="10dp"
|
|
41 |
android:layout_marginRight="10dp"
|
|
42 |
android:text="@string/scores" />
|
|
28 | 43 |
|
29 |
<TextView |
|
30 |
android:layout_width="match_parent" |
|
31 |
android:layout_height="fill_parent" |
|
32 |
android:layout_weight="0.60" |
|
33 |
android:layout_marginBottom="10dp" |
|
34 |
android:layout_marginTop="10dp" |
|
35 |
android:layout_marginLeft="10dp" |
|
36 |
android:layout_marginRight="10dp" |
|
37 |
android:linksClickable="true" |
|
38 |
android:autoLink="web" |
|
39 |
android:text="@string/credits2"/> |
|
40 |
|
|
41 |
</LinearLayout> |
|
44 |
<Button |
|
45 |
android:id="@+id/rubikAbout" |
|
46 |
android:layout_width="fill_parent" |
|
47 |
android:layout_height="fill_parent" |
|
48 |
android:layout_weight="1" |
|
49 |
android:onClick="About" |
|
50 |
android:layout_marginLeft="10dp" |
|
51 |
android:layout_marginRight="10dp" |
|
52 |
android:layout_marginBottom="10dp" |
|
53 |
android:text="@string/about" /> |
|
42 | 54 |
|
43 | 55 |
</LinearLayout> |
Also available in: Unified diff
Major rearrangement of the UI.