Project

General

Profile

Download (3.12 KB) Statistics
| Branch: | Tag: | Revision:

magiccube / src / main / res / layout / dialog_tutorial_row.xml @ ef1f3e34

1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="fill_parent"
4
    android:layout_height="fill_parent"
5
    android:gravity="center|fill_horizontal"
6
    android:layout_marginLeft="8dp"
7
    android:layout_marginRight="8dp"
8
    android:layout_marginTop="10dp"
9
    android:layout_marginBottom="10dp"
10
    android:background="@color/black"
11
    android:orientation="vertical">
12

    
13
    <TextView
14
        android:id="@+id/tutorialTitle"
15
        android:layout_width="match_parent"
16
        android:layout_height="wrap_content"
17
        android:gravity="center"
18
        android:textSize="18sp"
19
        android:layout_marginTop="10dp"
20
        android:layout_marginLeft="10dp"
21
        android:layout_marginRight="10dp"
22
        android:paddingLeft="2dp"
23
        android:paddingRight="2dp"
24
        android:maxLines="1"
25
        android:background="@color/grey"/>
26

    
27
    <LinearLayout
28
        android:id="@+id/tutorialLayout"
29
        android:layout_width="fill_parent"
30
        android:layout_height="wrap_content"
31
        android:layout_marginLeft="10dp"
32
        android:layout_marginRight="10dp"
33
        android:background="@color/grey"
34
        android:gravity="center"
35
        android:orientation="horizontal">
36

    
37
        <LinearLayout
38
             android:layout_width="0dp"
39
             android:layout_height="match_parent"
40
             android:layout_weight="0.4"
41
             android:gravity="left"
42
             android:orientation="horizontal">
43

    
44
             <ImageView
45
                 android:id="@+id/tutorialCountry"
46
                 android:layout_width="match_parent"
47
                 android:layout_height="match_parent"
48
                 android:paddingBottom="3dp"
49
                 android:paddingTop="3dp"
50
                 android:paddingLeft="10dp"/>
51
        </LinearLayout>
52

    
53
        <LinearLayout
54
             android:layout_width="0dp"
55
             android:layout_height="match_parent"
56
             android:layout_weight="1.5"
57
             android:gravity="left"
58
             android:orientation="horizontal">
59

    
60
             <TextView
61
                 android:id="@+id/tutorialAuthor"
62
                 android:layout_width="wrap_content"
63
                 android:layout_height="wrap_content"
64
                 android:paddingLeft="5dp"
65
                 android:textSize="18sp"
66
                 android:maxLines="1"
67
                 android:layout_gravity="center_vertical|start"/>
68
        </LinearLayout>
69

    
70
        <LinearLayout
71
             android:layout_width="0dp"
72
             android:layout_height="match_parent"
73
             android:layout_weight="1.0"
74
             android:gravity="right"
75
             android:orientation="horizontal">
76

    
77
             <Button
78
                 android:id="@+id/tutorialButton"
79
                 android:layout_width="match_parent"
80
                 android:layout_height="wrap_content"
81
                 android:paddingRight="15dp"
82
                 android:paddingLeft="15dp"
83
                 android:singleLine="true"
84
                 android:textAllCaps="false"
85
                 android:layout_gravity="right"/>
86
        </LinearLayout>
87

    
88
    </LinearLayout>
89
</LinearLayout>
(18-18/26)