Project

General

Profile

« Previous | Next » 

Revision 5560eea9

Added by Leszek Koltunski about 5 years ago

Progress with UI.

View differences:

src/main/res/layout/settings.xml
7 7

  
8 8
    <TextView
9 9
        android:layout_width="fill_parent"
10
        android:layout_height="64dp"
10
        android:layout_height="48dp"
11 11
        android:paddingStart="15dp"
12 12
        android:paddingEnd="15dp"
13 13
        android:gravity="start|center"
......
16 16

  
17 17
    <LinearLayout
18 18
        android:layout_width="fill_parent"
19
        android:layout_height="40dp"
20
        android:gravity="center|fill_horizontal"
21
        android:orientation="horizontal">
22

  
23
        <TextView
24
            android:layout_weight="0.25"
25
            android:layout_width="0dp"
26
            android:layout_height="fill_parent"
27
            android:paddingStart="5dp"
28
            android:paddingEnd="5dp"
29
            android:gravity="start|center"
30
            android:text="@string/duration"
31
            android:textAppearance="?android:attr/textAppearanceSmall" />
32

  
33
        <TextView
34
            android:id="@+id/disappearDurationText"
35
            android:layout_weight="0.25"
36
            android:layout_width="0dp"
37
            android:layout_height="fill_parent"
38
            android:paddingStart="5dp"
39
            android:paddingEnd="5dp"
40
            android:gravity="end|center"
41
            android:textAppearance="?android:attr/textAppearanceSmall" />
42

  
43
        <SeekBar
44
            android:id="@+id/disappearDuration"
45
            android:layout_weight="0.5"
46
            android:layout_width="0dp"
47
            android:layout_height="fill_parent"
48
            android:paddingLeft="10dp"
49
            android:paddingRight="10dp" />
50

  
51
    </LinearLayout>
52

  
53
    <LinearLayout
54
        android:layout_width="fill_parent"
55
        android:layout_height="40dp"
19
        android:layout_height="fill_parent"
20
        android:layout_weight="0.5"
56 21
        android:gravity="center|fill_horizontal"
57
        android:orientation="horizontal">
58

  
59
        <TextView
60
            android:layout_weight="0.5"
61
            android:layout_width="0dp"
62
            android:layout_height="fill_parent"
63
            android:paddingStart="5dp"
64
            android:paddingEnd="5dp"
65
            android:gravity="start|center"
66
            android:text="@string/type"
67
            android:textAppearance="?android:attr/textAppearanceSmall" />
68

  
69
        <Spinner
70
            android:id="@+id/disappearType"
71
            android:layout_weight="0.5"
72
            android:layout_width="0dp"
73
            android:layout_height="fill_parent"
74
            android:textAlignment="center"
75
            android:paddingLeft="10dp"
76
            android:paddingRight="10dp" />
77

  
22
        android:layout_marginLeft="10dp"
23
        android:layout_marginRight="10dp"
24
        android:background="@color/grey"
25
        android:orientation="vertical">
26

  
27
        <LinearLayout
28
            android:layout_width="fill_parent"
29
            android:layout_height="36dp"
30
            android:gravity="center|fill_horizontal"
31
            android:orientation="horizontal">
32

  
33
            <TextView
34
                android:layout_weight="0.2"
35
                android:layout_width="0dp"
36
                android:layout_height="fill_parent"
37
                android:paddingStart="5dp"
38
                android:paddingEnd="5dp"
39
                android:gravity="start|center"
40
                android:text="@string/duration"
41
                android:textAppearance="?android:attr/textAppearanceSmall" />
42

  
43
            <TextView
44
                android:id="@+id/disappearDurationText"
45
                android:layout_weight="0.2"
46
                android:layout_width="0dp"
47
                android:layout_height="fill_parent"
48
                android:paddingStart="5dp"
49
                android:paddingEnd="5dp"
50
                android:gravity="end|center"
51
                android:textAppearance="?android:attr/textAppearanceSmall" />
52

  
53
            <SeekBar
54
                android:id="@+id/disappearDuration"
55
                android:layout_weight="0.6"
56
                android:layout_width="0dp"
57
                android:layout_height="fill_parent"
58
                android:paddingLeft="10dp"
59
                android:paddingRight="10dp" />
60

  
61
        </LinearLayout>
62

  
63
        <LinearLayout
64
            android:layout_width="fill_parent"
65
            android:layout_height="36dp"
66
            android:gravity="center|fill_horizontal"
67
            android:orientation="horizontal">
68

  
69
            <TextView
70
                android:layout_weight="0.4"
71
                android:layout_width="0dp"
72
                android:layout_height="fill_parent"
73
                android:paddingStart="5dp"
74
                android:paddingEnd="5dp"
75
                android:gravity="start|center"
76
                android:text="@string/type"
77
                android:textAppearance="?android:attr/textAppearanceSmall" />
78

  
79
            <Spinner
80
                android:id="@+id/disappearType"
81
                android:layout_weight="0.6"
82
                android:layout_width="0dp"
83
                android:layout_height="fill_parent"
84
                android:textAlignment="center"
85
                android:paddingLeft="10dp"
86
                android:paddingRight="10dp" />
87

  
88
        </LinearLayout>
78 89
    </LinearLayout>
79 90

  
80 91
    <TextView
......
88 99

  
89 100
    <LinearLayout
90 101
        android:layout_width="fill_parent"
91
        android:layout_height="40dp"
102
        android:layout_height="fill_parent"
103
        android:layout_weight="0.5"
92 104
        android:gravity="center|fill_horizontal"
93
        android:orientation="horizontal">
94

  
95
        <TextView
96
            android:layout_weight="0.25"
97
            android:layout_width="0dp"
98
            android:layout_height="fill_parent"
99
            android:paddingStart="5dp"
100
            android:paddingEnd="5dp"
101
            android:gravity="start|center"
102
            android:text="@string/duration"
103
            android:textAppearance="?android:attr/textAppearanceSmall" />
104

  
105
        <TextView
106
            android:id="@+id/appearDurationText"
107
            android:layout_weight="0.25"
108
            android:layout_width="0dp"
109
            android:layout_height="fill_parent"
110
            android:paddingStart="5dp"
111
            android:paddingEnd="5dp"
112
            android:gravity="end|center"
113
            android:textAppearance="?android:attr/textAppearanceSmall" />
114

  
115
        <SeekBar
116
            android:id="@+id/appearDuration"
117
            android:layout_weight="0.5"
118
            android:layout_width="0dp"
119
            android:layout_height="fill_parent"
120
            android:paddingLeft="10dp"
121
            android:paddingRight="10dp" />
122

  
123
    </LinearLayout>
124

  
125
    <LinearLayout
126
        android:layout_width="fill_parent"
127
        android:layout_height="40dp"
128
        android:gravity="center|fill_horizontal"
129
        android:orientation="horizontal">
130

  
131
        <TextView
132
            android:layout_weight="0.5"
133
            android:layout_width="0dp"
134
            android:layout_height="fill_parent"
135
            android:paddingStart="5dp"
136
            android:paddingEnd="5dp"
137
            android:gravity="start|center"
138
            android:text="@string/type"
139
            android:textAppearance="?android:attr/textAppearanceSmall" />
140

  
141
        <Spinner
142
            android:id="@+id/appearType"
143
            android:layout_weight="0.5"
144
            android:layout_width="0dp"
145
            android:layout_height="fill_parent"
146
            android:textAlignment="center"
147
            android:paddingLeft="10dp"
148
            android:paddingRight="10dp" />
149

  
105
        android:layout_marginLeft="10dp"
106
        android:layout_marginRight="10dp"
107
        android:layout_marginBottom="10dp"
108
        android:background="@color/grey"
109
        android:orientation="vertical">
110

  
111
        <LinearLayout
112
            android:layout_width="fill_parent"
113
            android:layout_height="36dp"
114
            android:gravity="center|fill_horizontal"
115
            android:orientation="horizontal">
116

  
117
            <TextView
118
                android:layout_weight="0.2"
119
                android:layout_width="0dp"
120
                android:layout_height="fill_parent"
121
                android:paddingStart="5dp"
122
                android:paddingEnd="5dp"
123
                android:gravity="start|center"
124
                android:text="@string/duration"
125
                android:textAppearance="?android:attr/textAppearanceSmall" />
126

  
127
            <TextView
128
                android:id="@+id/appearDurationText"
129
                android:layout_weight="0.2"
130
                android:layout_width="0dp"
131
                android:layout_height="fill_parent"
132
                android:paddingStart="5dp"
133
                android:paddingEnd="5dp"
134
                android:gravity="end|center"
135
                android:textAppearance="?android:attr/textAppearanceSmall" />
136

  
137
            <SeekBar
138
                android:id="@+id/appearDuration"
139
                android:layout_weight="0.6"
140
                android:layout_width="0dp"
141
                android:layout_height="fill_parent"
142
                android:paddingLeft="10dp"
143
                android:paddingRight="10dp" />
144

  
145
        </LinearLayout>
146

  
147
        <LinearLayout
148
            android:layout_width="fill_parent"
149
            android:layout_height="36dp"
150
            android:gravity="center|fill_horizontal"
151
            android:orientation="horizontal">
152

  
153
            <TextView
154
                android:layout_weight="0.4"
155
                android:layout_width="0dp"
156
                android:layout_height="fill_parent"
157
                android:paddingStart="5dp"
158
                android:paddingEnd="5dp"
159
                android:gravity="start|center"
160
                android:text="@string/type"
161
                android:textAppearance="?android:attr/textAppearanceSmall" />
162

  
163
            <Spinner
164
                android:id="@+id/appearType"
165
                android:layout_weight="0.6"
166
                android:layout_width="0dp"
167
                android:layout_height="fill_parent"
168
                android:textAlignment="center"
169
                android:paddingLeft="10dp"
170
                android:paddingRight="10dp" />
171

  
172
        </LinearLayout>
150 173
    </LinearLayout>
151 174

  
152 175
</LinearLayout>

Also available in: Unified diff