Project

General

Profile

« Previous | Next » 

Revision b1c2b02f

Added by Leszek Koltunski over 6 years ago

Adjustments for the 'Flag' app.

View differences:

src/main/res/layout/flaglayout.xml
27 27
                android:id="@+id/flagAmplitude"
28 28
                android:layout_width="0dp"
29 29
                android:layout_height="wrap_content"
30
                android:layout_weight="0.75"
31
                android:gravity="bottom|left"
30
                android:layout_weight="1.0"
31
                android:layout_gravity="left|center_vertical"
32 32
                android:text="@string/amplitude"
33 33
                android:textAppearance="?android:attr/textAppearanceSmall" />
34 34

  
......
37 37
                android:layout_width="wrap_content"
38 38
                android:layout_height="wrap_content"
39 39
                android:layout_weight="1"
40
                android:paddingLeft="5dp"
41 40
                android:paddingRight="5dp" />
42 41

  
43 42
            <TextView
44 43
                android:id="@+id/flagNoiseAmplitude"
45 44
                android:layout_width="0dp"
46 45
                android:layout_height="wrap_content"
47
                android:layout_weight="0.6"
48
                android:gravity="center_vertical|left"
46
                android:layout_weight="0.9"
47
                android:layout_gravity="center_vertical|left"
49 48
                android:text="@string/noise"
50 49
                android:textAppearance="?android:attr/textAppearanceSmall" />
51 50

  
......
54 53
                android:layout_width="wrap_content"
55 54
                android:layout_height="wrap_content"
56 55
                android:layout_weight="1"
57
                android:paddingLeft="5dp"
58 56
                android:paddingRight="5dp" />
59 57

  
60 58
        </TableRow>
......
70 68
                android:id="@+id/flagLength"
71 69
                android:layout_width="0dp"
72 70
                android:layout_height="wrap_content"
73
                android:layout_weight="0.75"
74
                android:gravity="left|center_vertical"
71
                android:layout_weight="1.0"
72
                android:layout_gravity="center_vertical|left"
75 73
                android:text="@string/length"
76 74
                android:textAppearance="?android:attr/textAppearanceSmall" />
77 75

  
......
80 78
                android:layout_width="wrap_content"
81 79
                android:layout_height="wrap_content"
82 80
                android:layout_weight="1"
83
                android:paddingLeft="5dp"
84 81
                android:paddingRight="5dp" />
85 82

  
86 83
            <TextView
87 84
                android:id="@+id/flagNoiseLength"
88 85
                android:layout_width="0dp"
89 86
                android:layout_height="wrap_content"
90
                android:layout_weight="0.6"
91
                android:gravity="center_vertical|left"
87
                android:layout_weight="0.9"
88
                android:layout_gravity="center_vertical|left"
92 89
                android:text="@string/noise"
93 90
                android:textAppearance="?android:attr/textAppearanceSmall" />
94 91

  
......
97 94
                android:layout_width="wrap_content"
98 95
                android:layout_height="wrap_content"
99 96
                android:layout_weight="1"
100
                android:paddingLeft="5dp"
101 97
                android:paddingRight="5dp" />
102 98

  
103 99
        </TableRow>
......
113 109
                android:id="@+id/flagAngleA"
114 110
                android:layout_width="0dp"
115 111
                android:layout_height="wrap_content"
116
                android:layout_weight="0.75"
117
                android:gravity="left|center_vertical"
112
                android:layout_weight="1.0"
113
                android:layout_gravity="center_vertical|left"
118 114
                android:text="@string/angleA"
119 115
                android:textAppearance="?android:attr/textAppearanceSmall" />
120 116

  
......
123 119
                android:layout_width="wrap_content"
124 120
                android:layout_height="wrap_content"
125 121
                android:layout_weight="1"
126
                android:paddingLeft="5dp"
127 122
                android:paddingRight="5dp" />
128 123

  
129 124
            <TextView
130 125
                android:id="@+id/flagNoiseAngleA"
131 126
                android:layout_width="0dp"
132 127
                android:layout_height="wrap_content"
133
                android:layout_weight="0.6"
134
                android:gravity="center_vertical|left"
128
                android:layout_weight="0.9"
129
                android:layout_gravity="center_vertical|left"
135 130
                android:text="@string/noise"
136 131
                android:textAppearance="?android:attr/textAppearanceSmall" />
137 132

  
......
140 135
                android:layout_width="wrap_content"
141 136
                android:layout_height="wrap_content"
142 137
                android:layout_weight="1"
143
                android:paddingLeft="5dp"
144 138
                android:paddingRight="5dp" />
145 139

  
146 140
        </TableRow>
......
156 150
                android:id="@+id/flagAngleB"
157 151
                android:layout_width="0dp"
158 152
                android:layout_height="wrap_content"
159
                android:layout_weight="0.75"
160
                android:gravity="left|center_vertical"
153
                android:layout_weight="1.0"
154
                android:layout_gravity="center_vertical|left"
161 155
                android:text="@string/angleB"
162 156
                android:textAppearance="?android:attr/textAppearanceSmall" />
163 157

  
......
166 160
                android:layout_width="wrap_content"
167 161
                android:layout_height="wrap_content"
168 162
                android:layout_weight="1"
169
                android:paddingLeft="5dp"
170 163
                android:paddingRight="5dp" />
171 164

  
172 165
            <TextView
173 166
                android:id="@+id/flagNoiseAngleB"
174 167
                android:layout_width="0dp"
175 168
                android:layout_height="wrap_content"
176
                android:layout_weight="0.6"
177
                android:gravity="center_vertical|left"
169
                android:layout_weight="0.9"
170
                android:layout_gravity="center_vertical|left"
178 171
                android:text="@string/noise"
179 172
                android:textAppearance="?android:attr/textAppearanceSmall" />
180 173

  
......
183 176
                android:layout_width="wrap_content"
184 177
                android:layout_height="wrap_content"
185 178
                android:layout_weight="1"
186
                android:paddingLeft="5dp"
187 179
                android:paddingRight="5dp" />
188 180

  
189 181
        </TableRow>
src/main/res/values/strings.xml
84 84
    <string name="radius_placeholder">Radius: %1$s</string>
85 85
    <string name="noise_placeholder">Noise %1$s</string>
86 86
    <string name="length_placeholder">Length %1$d</string>
87
    <string name="amplitude_placeholder">Amplitude %1$d</string>
87
    <string name="amplitude_placeholder">Amplitu %1$d</string>
88 88
    <string name="alpha_placeholder">Alpha %1$d</string>
89 89
    <string name="beta_placeholder">Beta %1$d</string>
90 90
    <string name="swing_placeholder">Swing %1$d</string>

Also available in: Unified diff