Project

General

Profile

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

magiccube / src / main / res / layout / purchase.xml @ 71cda061

1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:id="@+id/mainLayout"
4
    android:layout_width="match_parent"
5
    android:layout_height="match_parent"
6
    android:background="@color/light_grey"
7
    android:orientation="vertical">
8

    
9
    <RelativeLayout
10
         android:id="@+id/upperBar"
11
         android:layout_width="fill_parent"
12
         android:layout_height="100dp"
13
         android:paddingLeft="5dp"
14
         android:paddingRight="5dp"
15
         android:background="@color/grey"
16
         android:orientation="horizontal">
17

    
18
         <TextView
19
             android:id="@+id/purchaseDetailsName"
20
             android:layout_width="wrap_content"
21
             android:layout_height="match_parent"
22
             android:layout_alignParentStart="true"
23
             android:paddingStart="5dp"
24
             android:textSize="26sp"
25
             android:singleLine="true"
26
             android:maxLines="1"/>
27

    
28
         <ImageView
29
             android:id="@+id/purchaseDifficulty"
30
             android:layout_width="wrap_content"
31
             android:layout_height="match_parent"
32
             android:layout_alignParentEnd="true"/>
33
    </RelativeLayout>
34

    
35
    <org.distorted.purchase.PurchaseSurfaceView
36
        android:id="@+id/purchaseSurfaceView"
37
        android:layout_width="match_parent"
38
        android:layout_height="wrap_content"/>
39

    
40
        <LinearLayout
41
            android:id="@+id/purchaseLayoutOne"
42
            android:layout_width="fill_parent"
43
            android:layout_height="10dp"
44
            android:paddingLeft="5dp"
45
            android:paddingRight="5dp"
46
            android:background="@color/grey"
47
            android:orientation="horizontal">
48

    
49
            <TextView
50
                android:id="@+id/purchaseTextOne"
51
                android:layout_width="0dp"
52
                android:layout_height="match_parent"
53
                android:layout_weight="2.0"
54
                android:gravity="center_vertical|start"
55
                android:paddingStart="5dp"
56
                android:textSize="26sp"
57
                android:singleLine="true"
58
                android:maxLines="1"
59
                android:text="@string/buy_one"/>
60

    
61
            <Button
62
                android:id="@+id/purchaseButtonOne"
63
                android:layout_width="0dp"
64
                android:layout_height="match_parent"
65
                android:layout_weight="1.0"
66
                android:gravity="center_vertical|end"
67
                android:paddingStart="5dp"
68
                android:textSize="26sp"
69
                android:singleLine="true"
70
                android:maxLines="1"/>
71

    
72
        </LinearLayout>
73

    
74
        <LinearLayout
75
            android:id="@+id/purchaseLayoutAll"
76
            android:layout_width="fill_parent"
77
            android:layout_height="10dp"
78
            android:paddingLeft="5dp"
79
            android:paddingRight="5dp"
80
            android:background="@color/grey"
81
            android:orientation="horizontal">
82

    
83
            <TextView
84
                android:id="@+id/purchaseTextAll"
85
                android:layout_width="0dp"
86
                android:layout_height="match_parent"
87
                android:layout_weight="2.0"
88
                android:gravity="center_vertical|start"
89
                android:paddingStart="5dp"
90
                android:textSize="26sp"
91
                android:singleLine="true"
92
                android:maxLines="1"
93
                android:text="@string/buy_all"/>
94

    
95
            <Button
96
                android:id="@+id/purchaseButtonAll"
97
                android:layout_width="0dp"
98
                android:layout_height="match_parent"
99
                android:layout_weight="1.0"
100
                android:gravity="center_vertical|end"
101
                android:paddingStart="5dp"
102
                android:textSize="26sp"
103
                android:singleLine="true"
104
                android:maxLines="1"/>
105
        </LinearLayout>
106

    
107
    <LinearLayout
108
        android:id="@+id/lowerBar"
109
        android:layout_width="match_parent"
110
        android:layout_height="100dp"
111
        android:layout_gravity="end"
112
        android:orientation="horizontal"
113
        android:background="@color/light_grey">
114
    </LinearLayout>
115

    
116
</LinearLayout>
(36-36/40)