Project

General

Profile

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

magiccube / src / main / res / layout / purchase.xml @ a8be1a23

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
    <LinearLayout
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
         <LinearLayout
19
             android:id="@+id/upperBarLeft"
20
             android:layout_width="0dp"
21
             android:layout_height="match_parent"
22
             android:layout_weight="3.0"
23
             android:gravity="center_vertical|start"
24
             android:background="@color/grey"
25
             android:orientation="vertical">
26

    
27
             <TextView
28
                 android:id="@+id/purchaseUpperName"
29
                 android:layout_width="match_parent"
30
                 android:layout_height="wrap_content"
31
                 android:paddingStart="5dp"
32
                 android:textSize="26sp"
33
                 android:singleLine="true"
34
                 android:maxLines="1"/>
35
             <TextView
36
                 android:id="@+id/purchaseUpperAuthor"
37
                 android:layout_width="match_parent"
38
                 android:layout_height="wrap_content"
39
                 android:paddingStart="5dp"
40
                 android:textSize="26sp"
41
                 android:singleLine="true"
42
                 android:maxLines="1"/>
43
         </LinearLayout>
44

    
45
         <ImageView
46
             android:id="@+id/purchaseDifficulty"
47
             android:layout_width="0dp"
48
             android:layout_height="match_parent"
49
             android:layout_weight="1.0"/>
50

    
51
    </LinearLayout>
52

    
53
    <org.distorted.purchase.PurchaseSurfaceView
54
        android:id="@+id/purchaseSurfaceView"
55
        android:layout_width="match_parent"
56
        android:layout_height="wrap_content"/>
57

    
58
    <LinearLayout
59
        android:id="@+id/purchaseLayoutOne"
60
        android:layout_width="fill_parent"
61
        android:layout_height="10dp"
62
        android:paddingLeft="5dp"
63
        android:paddingRight="5dp"
64
        android:background="@color/grey"
65
        android:orientation="horizontal">
66

    
67
        <TextView
68
            android:id="@+id/purchaseTextOne"
69
            android:layout_width="0dp"
70
            android:layout_height="match_parent"
71
            android:layout_weight="2.0"
72
            android:gravity="center_vertical|start"
73
            android:paddingStart="5dp"
74
            android:textSize="26sp"
75
            android:text="@string/buy_one"/>
76

    
77
        <ImageButton
78
            android:id="@+id/purchaseButtonOne"
79
            android:layout_width="0dp"
80
            android:layout_height="match_parent"
81
            android:layout_weight="1.0"
82
            android:gravity="center_vertical|end"
83
            android:backgroundTint="@color/dark_white"
84
            android:scaleType="fitCenter"
85
            android:src="@drawable/price_50"/>
86

    
87
    </LinearLayout>
88

    
89
    <LinearLayout
90
        android:id="@+id/purchaseLayoutAll"
91
        android:layout_width="fill_parent"
92
        android:layout_height="10dp"
93
        android:paddingLeft="5dp"
94
        android:paddingRight="5dp"
95
        android:background="@color/grey"
96
        android:orientation="horizontal">
97

    
98
        <TextView
99
            android:id="@+id/purchaseTextAll"
100
            android:layout_width="0dp"
101
            android:layout_height="match_parent"
102
            android:layout_weight="2.0"
103
            android:gravity="center_vertical|start"
104
            android:paddingStart="5dp"
105
            android:textSize="26sp"
106
            android:text="@string/buy_all"/>
107

    
108
        <ImageButton
109
            android:id="@+id/purchaseButtonAll"
110
            android:layout_width="0dp"
111
            android:layout_height="match_parent"
112
            android:layout_weight="1.0"
113
            android:gravity="center_vertical|end"
114
            android:backgroundTint="@color/dark_white"
115
            android:scaleType="fitCenter"
116
            android:src="@drawable/price_600"/>
117
    </LinearLayout>
118

    
119
    <LinearLayout
120
        android:id="@+id/lowerBar"
121
        android:layout_width="match_parent"
122
        android:layout_height="100dp"
123
        android:layout_gravity="end"
124
        android:orientation="horizontal"
125
        android:background="@color/light_grey">
126
    </LinearLayout>
127

    
128
</LinearLayout>
(40-40/44)