Project

General

Profile

« Previous | Next » 

Revision 1f6d1786

Added by Leszek Koltunski almost 2 years ago

Lots of progress with the main screen

View differences:

distorted-sokoban/src/main/res/layout/toc_item.xml
3 3
	xmlns:android="http://schemas.android.com/apk/res/android"
4 4
	android:layout_width="match_parent"	
5 5
	android:layout_height="wrap_content"
6
	android:baselineAligned="false"
6 7
	android:orientation="horizontal"
7 8
	android:paddingTop="4dp"
8 9
	android:paddingBottom="4dp">
9 10

  
10
   	<ImageView
11
   		android:id="@+id/Image"
12
   		android:layout_width="wrap_content"
13
   		android:layout_height="wrap_content"
14
   		android:layout_margin="8dp"
15
   		android:background="@drawable/icon_border"/>
16

  
17 11
   	<LinearLayout
18 12
   		android:layout_width="0dp"
19 13
 		android:layout_height="wrap_content"
20 14
 		android:layout_weight="1"
21 15
 		android:orientation="vertical"
22 16
 		android:layout_gravity="center_vertical">
23
		<TextView 
24
    		android:id="@+id/Title" 
25
    		android:layout_width="match_parent" 
26
    		android:layout_height="wrap_content"
27
    		android:textStyle="bold"/>
28
   		<TextView 
29
    		android:id="@+id/SubTitle" 
30
    		android:layout_width="wrap_content" 
31
    		android:layout_height="wrap_content"/>	       
17

  
18
 		<LinearLayout
19
	        android:layout_width="match_parent"
20
	        android:layout_height="wrap_content"
21
	        android:orientation="horizontal"
22
	        android:paddingTop="4dp"
23
	        android:paddingBottom="4dp">
24

  
25
		    <TextView
26
    		    android:id="@+id/leftNumber"
27
    		    android:layout_width="match_parent"
28
    		    android:layout_height="wrap_content"
29
    		    android:textStyle="bold"/>
30
   		    <TextView
31
    		    android:id="@+id/leftRecord"
32
    		    android:layout_width="wrap_content"
33
    		    android:layout_height="wrap_content"/>
34
    	</LinearLayout>
35

  
36
   	    <ImageView
37
   		    android:id="@+id/leftImage"
38
   		    android:layout_width="wrap_content"
39
   		    android:layout_height="wrap_content"
40
   		    android:contentDescription="@string/level_image"
41
   		    android:layout_margin="8dp"
42
   		    android:background="@drawable/icon_border"/>
43
	</LinearLayout>
44
	<LinearLayout
45
   		android:layout_width="0dp"
46
 		android:layout_height="wrap_content"
47
 		android:layout_weight="1"
48
 		android:orientation="vertical"
49
 		android:layout_gravity="center_vertical">
50

  
51
 		<LinearLayout
52
	        android:layout_width="match_parent"
53
	        android:layout_height="wrap_content"
54
	        android:orientation="horizontal"
55
	        android:paddingTop="4dp"
56
	        android:paddingBottom="4dp">
57

  
58
		    <TextView
59
    		    android:id="@+id/rightNumber"
60
    		    android:layout_width="match_parent"
61
    		    android:layout_height="wrap_content"
62
    		    android:textStyle="bold"/>
63
   		    <TextView
64
    		    android:id="@+id/rightRecord"
65
    		    android:layout_width="wrap_content"
66
    		    android:layout_height="wrap_content"/>
67
    	</LinearLayout>
68

  
69
   	    <ImageView
70
   		    android:id="@+id/rightImage"
71
   		    android:layout_width="wrap_content"
72
   		    android:layout_height="wrap_content"
73
   		    android:contentDescription="@string/level_image"
74
   		    android:layout_margin="8dp"
75
   		    android:background="@drawable/icon_border"/>
32 76
 	</LinearLayout>    
33 77
</LinearLayout>

Also available in: Unified diff