Revision c40df162
Added by Leszek Koltunski over 5 years ago
src/main/res/layout/triblurlayout.xml | ||
---|---|---|
10 | 10 |
android:layout_height="0dp" |
11 | 11 |
android:layout_weight="1" /> |
12 | 12 |
|
13 |
|
|
14 | 13 |
<LinearLayout |
15 | 14 |
android:id="@+id/linearLayout3" |
16 | 15 |
android:layout_width="fill_parent" |
... | ... | |
35 | 34 |
</LinearLayout> |
36 | 35 |
|
37 | 36 |
<LinearLayout |
38 |
android:orientation="horizontal" |
|
39 |
android:background="@color/red" |
|
40 | 37 |
android:layout_width="match_parent" |
41 |
android:layout_height="50dp" |
|
42 |
android:paddingBottom="10dp" |
|
43 |
android:paddingTop="10dp"> |
|
38 |
android:layout_height="60dp" |
|
39 |
android:background="@color/red" |
|
40 |
android:orientation="horizontal" |
|
41 |
android:paddingTop="5dp"> |
|
44 | 42 |
|
45 |
<CheckBox |
|
46 |
android:layout_height="fill_parent" |
|
47 |
android:layout_width="wrap_content" |
|
48 |
android:id="@+id/triblurCheckBox0" |
|
49 |
android:paddingLeft="10dp" |
|
50 |
android:onClick="onClick" |
|
51 |
android:checked="true"/> |
|
43 |
<RadioGroup |
|
44 |
android:id="@+id/triblurRadio0" |
|
45 |
android:layout_width="0dp" |
|
46 |
android:layout_height="wrap_content" |
|
47 |
android:layout_weight="0.6" |
|
48 |
android:orientation="horizontal"> |
|
49 |
|
|
50 |
<RadioButton |
|
51 |
android:id="@+id/triblurRadioNone0" |
|
52 |
android:layout_width="match_parent" |
|
53 |
android:layout_height="wrap_content" |
|
54 |
android:layout_weight="1" |
|
55 |
android:onClick="effect" |
|
56 |
android:text="@string/none" |
|
57 |
android:textSize="14sp" /> |
|
58 |
|
|
59 |
<RadioButton |
|
60 |
android:id="@+id/triblurRadioBlur0" |
|
61 |
android:layout_width="match_parent" |
|
62 |
android:layout_height="wrap_content" |
|
63 |
android:layout_weight="1" |
|
64 |
android:checked="true" |
|
65 |
android:onClick="effect" |
|
66 |
android:text="@string/blur" |
|
67 |
android:textSize="14sp" /> |
|
68 |
|
|
69 |
<RadioButton |
|
70 |
android:id="@+id/triblurRadioGlow0" |
|
71 |
android:layout_width="match_parent" |
|
72 |
android:layout_height="wrap_content" |
|
73 |
android:layout_weight="1" |
|
74 |
android:onClick="effect" |
|
75 |
android:text="@string/glow" |
|
76 |
android:textSize="14sp" /> |
|
77 |
|
|
78 |
</RadioGroup> |
|
52 | 79 |
|
53 | 80 |
<SeekBar |
54 | 81 |
android:id="@+id/triblurSeek0" |
82 |
android:layout_width="wrap_content" |
|
55 | 83 |
android:layout_height="fill_parent" |
56 |
android:layout_width="fill_parent"
|
|
57 |
android:paddingLeft="10dp"
|
|
58 |
android:paddingRight="10dp" />
|
|
84 |
android:layout_weight="0.4"
|
|
85 |
android:paddingLeft="5dp"
|
|
86 |
android:paddingRight="5dp" />
|
|
59 | 87 |
</LinearLayout> |
60 | 88 |
|
61 | 89 |
<LinearLayout |
62 |
android:orientation="horizontal" |
|
63 |
android:background="@color/yellow" |
|
64 | 90 |
android:layout_width="match_parent" |
65 |
android:layout_height="50dp" |
|
66 |
android:paddingBottom="10dp" |
|
67 |
android:paddingTop="10dp"> |
|
91 |
android:layout_height="60dp" |
|
92 |
android:background="@color/yellow" |
|
93 |
android:orientation="horizontal" |
|
94 |
android:paddingTop="5dp"> |
|
68 | 95 |
|
69 |
<CheckBox |
|
70 |
android:layout_height="fill_parent" |
|
71 |
android:layout_width="wrap_content" |
|
72 |
android:id="@+id/triblurCheckBox1" |
|
73 |
android:paddingLeft="10dp" |
|
74 |
android:onClick="onClick" |
|
75 |
android:checked="true"/> |
|
96 |
<RadioGroup |
|
97 |
android:id="@+id/triblurRadio1" |
|
98 |
android:layout_width="0dp" |
|
99 |
android:layout_height="wrap_content" |
|
100 |
android:layout_weight="0.6" |
|
101 |
android:orientation="horizontal"> |
|
102 |
|
|
103 |
<RadioButton |
|
104 |
android:id="@+id/triblurRadioNone1" |
|
105 |
android:layout_width="match_parent" |
|
106 |
android:layout_height="wrap_content" |
|
107 |
android:layout_weight="1" |
|
108 |
android:onClick="effect" |
|
109 |
android:text="@string/none" |
|
110 |
android:textSize="14sp" /> |
|
111 |
|
|
112 |
<RadioButton |
|
113 |
android:id="@+id/triblurRadioBlur1" |
|
114 |
android:layout_width="match_parent" |
|
115 |
android:layout_height="wrap_content" |
|
116 |
android:layout_weight="1" |
|
117 |
android:checked="true" |
|
118 |
android:onClick="effect" |
|
119 |
android:text="@string/blur" |
|
120 |
android:textSize="14sp" /> |
|
121 |
|
|
122 |
<RadioButton |
|
123 |
android:id="@+id/triblurRadioGlow1" |
|
124 |
android:layout_width="match_parent" |
|
125 |
android:layout_height="wrap_content" |
|
126 |
android:layout_weight="1" |
|
127 |
android:onClick="effect" |
|
128 |
android:text="@string/glow" |
|
129 |
android:textSize="14sp" /> |
|
130 |
|
|
131 |
</RadioGroup> |
|
76 | 132 |
|
77 | 133 |
<SeekBar |
78 | 134 |
android:id="@+id/triblurSeek1" |
135 |
android:layout_width="wrap_content" |
|
79 | 136 |
android:layout_height="fill_parent" |
80 |
android:layout_width="fill_parent"
|
|
81 |
android:paddingLeft="10dp"
|
|
82 |
android:paddingRight="10dp" />
|
|
137 |
android:layout_weight="0.4"
|
|
138 |
android:paddingLeft="5dp"
|
|
139 |
android:paddingRight="5dp" />
|
|
83 | 140 |
</LinearLayout> |
84 | 141 |
|
85 | 142 |
<LinearLayout |
86 |
android:orientation="horizontal" |
|
87 |
android:background="@color/green" |
|
88 | 143 |
android:layout_width="match_parent" |
89 |
android:layout_height="50dp" |
|
90 |
android:paddingBottom="10dp" |
|
91 |
android:paddingTop="10dp"> |
|
144 |
android:layout_height="60dp" |
|
145 |
android:background="@color/green" |
|
146 |
android:orientation="horizontal" |
|
147 |
android:paddingTop="5dp"> |
|
92 | 148 |
|
93 |
<CheckBox |
|
94 |
android:layout_height="fill_parent" |
|
95 |
android:layout_width="wrap_content" |
|
96 |
android:id="@+id/triblurCheckBox2" |
|
97 |
android:paddingLeft="10dp" |
|
98 |
android:onClick="onClick" |
|
99 |
android:checked="true"/> |
|
149 |
<RadioGroup |
|
150 |
android:id="@+id/triblurRadio2" |
|
151 |
android:layout_width="0dp" |
|
152 |
android:layout_height="wrap_content" |
|
153 |
android:layout_weight="0.6" |
|
154 |
android:orientation="horizontal"> |
|
155 |
|
|
156 |
<RadioButton |
|
157 |
android:id="@+id/triblurRadioNone2" |
|
158 |
android:layout_width="match_parent" |
|
159 |
android:layout_height="wrap_content" |
|
160 |
android:layout_weight="1" |
|
161 |
android:onClick="effect" |
|
162 |
android:text="@string/none" |
|
163 |
android:textSize="14sp" /> |
|
164 |
|
|
165 |
<RadioButton |
|
166 |
android:id="@+id/triblurRadioBlur2" |
|
167 |
android:layout_width="match_parent" |
|
168 |
android:layout_height="wrap_content" |
|
169 |
android:layout_weight="1" |
|
170 |
android:checked="true" |
|
171 |
android:onClick="effect" |
|
172 |
android:text="@string/blur" |
|
173 |
android:textSize="14sp" /> |
|
174 |
|
|
175 |
<RadioButton |
|
176 |
android:id="@+id/triblurRadioGlow2" |
|
177 |
android:layout_width="match_parent" |
|
178 |
android:layout_height="wrap_content" |
|
179 |
android:layout_weight="1" |
|
180 |
android:onClick="effect" |
|
181 |
android:text="@string/glow" |
|
182 |
android:textSize="14sp" /> |
|
183 |
|
|
184 |
</RadioGroup> |
|
100 | 185 |
|
101 | 186 |
<SeekBar |
102 | 187 |
android:id="@+id/triblurSeek2" |
188 |
android:layout_width="wrap_content" |
|
103 | 189 |
android:layout_height="fill_parent" |
104 |
android:layout_width="fill_parent"
|
|
105 |
android:paddingLeft="10dp"
|
|
106 |
android:paddingRight="10dp" />
|
|
190 |
android:layout_weight="0.4"
|
|
191 |
android:paddingLeft="5dp"
|
|
192 |
android:paddingRight="5dp" />
|
|
107 | 193 |
</LinearLayout> |
108 | 194 |
|
109 | 195 |
<LinearLayout |
... | ... | |
113 | 199 |
android:gravity="center|fill_horizontal" |
114 | 200 |
android:orientation="horizontal" |
115 | 201 |
android:background="@color/cyan" |
116 |
android:paddingBottom="10dp"
|
|
117 |
android:paddingTop="10dp" >
|
|
202 |
android:paddingBottom="2dp"
|
|
203 |
android:paddingTop="2dp" >
|
|
118 | 204 |
|
119 | 205 |
<RadioGroup |
120 | 206 |
android:id="@+id/triblurRadioBackground" |
Also available in: Unified diff
Improve the Triblur app to be able to switch objects into 1 of 3 states: no postprocessing, blur, glow.