Project

General

Profile

« Previous | Next » 

Revision cd432dd3

Added by Leszek Koltunski over 1 year ago

IAP part 5: new 'Purchase' activity (cont'd)

View differences:

src/main/res/layout/purchase.xml
6 6
    android:background="@color/light_grey"
7 7
    android:orientation="vertical">
8 8

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

  
18
         <TextView
19
             android:id="@+id/purchaseDetailsName"
20
             android:layout_width="wrap_content"
18
         <LinearLayout
19
             android:id="@+id/upperBarLeft"
20
             android:layout_width="0dp"
21 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"/>
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>
27 44

  
28 45
         <ImageView
29 46
             android:id="@+id/purchaseDifficulty"
30
             android:layout_width="wrap_content"
47
             android:layout_width="0dp"
31 48
             android:layout_height="match_parent"
32
             android:layout_alignParentEnd="true"/>
33
    </RelativeLayout>
49
             android:layout_weight="1.0"/>
50

  
51
    </LinearLayout>
34 52

  
35 53
    <org.distorted.purchase.PurchaseSurfaceView
36 54
        android:id="@+id/purchaseSurfaceView"

Also available in: Unified diff