Project

General

Profile

« Previous | Next » 

Revision 2e99ba6a

Added by Leszek Koltunski over 2 years ago

Progress with ConfigPane.

View differences:

src/main/res/layout/config_mesh.xml
2 2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 3
    android:layout_width="fill_parent"
4 4
    android:layout_height="0dp"
5
    android:layout_weight="1"
5
    android:paddingLeft="10dp"
6
    android:paddingRight="10dp"
7
    android:paddingBottom="10dp"
6 8
    android:gravity="center|fill_horizontal"
7 9
    android:background="@color/grey"
8 10
    android:orientation="vertical">
......
11 13
        android:id="@+id/configMeshTitle"
12 14
        android:layout_width="match_parent"
13 15
        android:layout_height="0dp"
14
        android:layout_weight="1"
16
        android:layout_weight="0.8"
15 17
        android:gravity="center"
16 18
        android:textSize="26sp"
17
        android:layout_marginTop="10dp"
18
        android:layout_marginLeft="10dp"
19
        android:layout_marginRight="10dp"
20 19
        android:paddingLeft="2dp"
21 20
        android:paddingRight="2dp"
22 21
        android:maxLines="1"
23 22
        android:text="@string/config_mesh"
24 23
        android:background="@color/light_grey"/>
25 24

  
26
    <LinearLayout
27
        android:layout_width="fill_parent"
28
        android:layout_height="0dp"
29
        android:layout_weight="1"
30
        android:layout_marginLeft="10dp"
31
        android:layout_marginRight="10dp"
32
        android:paddingLeft="5dp"
33
        android:paddingRight="5dp"
34
        android:background="@color/light_grey"
35
        android:orientation="horizontal">
36

  
37
        <TextView
38
             android:layout_width="0dp"
39
             android:layout_height="match_parent"
40
             android:layout_weight="1.0"
41
             android:gravity="center_vertical|start"
42
             android:paddingStart="5dp"
43
             android:textSize="26sp"
44
             android:singleLine="true"
45
             android:maxLines="1"
46
             android:text="@string/config_name"/>
47

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

  
59
    </LinearLayout>
60

  
61
    <LinearLayout
62
        android:layout_width="fill_parent"
25
    <RadioGroup
26
        android:id="@+id/meshRadioGroup"
27
        android:layout_width="match_parent"
63 28
        android:layout_height="0dp"
64
        android:layout_weight="1"
65
        android:layout_marginLeft="10dp"
66
        android:layout_marginRight="10dp"
67
        android:layout_marginBottom="10dp"
68
        android:paddingLeft="5dp"
69
        android:paddingRight="5dp"
70
        android:background="@color/light_grey"
71
        android:orientation="horizontal">
72

  
73
        <TextView
74
             android:layout_width="0dp"
75
             android:layout_height="match_parent"
76
             android:layout_weight="1.0"
77
             android:gravity="center_vertical|start"
78
             android:paddingStart="5dp"
79
             android:textSize="26sp"
80
             android:singleLine="true"
81
             android:maxLines="1"
82
             android:text="@string/config_author"/>
83

  
84
        <TextView
85
             android:id="@+id/configDetailsAuthor"
86
             android:layout_width="0dp"
87
             android:layout_height="match_parent"
88
             android:layout_weight="1.0"
89
             android:gravity="center_vertical|start"
90
             android:paddingStart="5dp"
91
             android:textSize="26sp"
92
             android:singleLine="true"
93
             android:maxLines="1"/>
29
        android:layout_weight="2"
30
        android:checkedButton="@+id/meshNice"
31
        android:background="@color/light_grey">
32

  
33
        <RadioButton
34
            android:id="@+id/meshSimple"
35
            android:layout_width="match_parent"
36
            android:layout_height="wrap_content"
37
            android:layout_marginBottom="0dp"
38
            android:text="@string/config_mesh_simple"/>
39

  
40
        <RadioButton
41
            android:id="@+id/meshNice"
42
            android:layout_width="match_parent"
43
            android:layout_height="wrap_content"
44
            android:layout_marginBottom="0dp"
45
            android:text="@string/config_mesh_nice"/>
46

  
47
    </RadioGroup>
94 48

  
95
    </LinearLayout>
96 49
</LinearLayout>

Also available in: Unified diff