1 |
f9afbbf3
|
Leszek Koltunski
|
<?xml version="1.0" encoding="utf-8"?>
|
2 |
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
3 |
|
|
android:layout_width="fill_parent"
|
4 |
|
|
android:layout_height="fill_parent"
|
5 |
|
|
android:orientation="vertical" >
|
6 |
|
|
|
7 |
|
|
<org.distorted.examples.effects2d.Effects2DSurfaceView
|
8 |
|
|
android:id="@+id/scratchpadSurfaceView"
|
9 |
|
|
android:layout_width="fill_parent"
|
10 |
|
|
android:layout_height="0dp"
|
11 |
|
|
android:layout_weight="1" />
|
12 |
|
|
|
13 |
|
|
<LinearLayout
|
14 |
|
|
android:id="@+id/linearLayout1"
|
15 |
|
|
android:layout_width="fill_parent"
|
16 |
|
|
android:layout_height="wrap_content"
|
17 |
|
|
android:layout_weight="0.3"
|
18 |
|
|
android:gravity="fill_horizontal|top"
|
19 |
|
|
android:orientation="vertical"
|
20 |
|
|
android:weightSum="1">
|
21 |
|
|
|
22 |
|
|
<View
|
23 |
|
|
android:layout_height="2dip"
|
24 |
|
|
android:background="#FF0000"
|
25 |
|
|
android:layout_width="match_parent"
|
26 |
|
|
/>
|
27 |
|
|
|
28 |
|
|
<TextView
|
29 |
|
|
android:layout_width="wrap_content"
|
30 |
|
|
android:layout_height="wrap_content"
|
31 |
|
|
android:text="@string/add"
|
32 |
|
|
android:id="@+id/textView"
|
33 |
|
|
android:layout_gravity="center_horizontal"/>
|
34 |
|
|
|
35 |
|
|
<RadioGroup
|
36 |
|
|
android:id="@+id/radioGroup1"
|
37 |
|
|
android:layout_width="wrap_content"
|
38 |
|
|
android:layout_height="wrap_content"
|
39 |
|
|
android:paddingLeft="5dp"
|
40 |
|
|
android:paddingRight="10dp"
|
41 |
|
|
android:orientation="horizontal"
|
42 |
|
|
android:layout_gravity="center_horizontal">
|
43 |
|
|
|
44 |
|
|
<RadioButton
|
45 |
|
|
android:id="@+id/scratchpadDistort"
|
46 |
|
|
android:layout_width="wrap_content"
|
47 |
|
|
android:layout_height="wrap_content"
|
48 |
|
|
android:checked="true"
|
49 |
|
|
android:onClick="Distort"
|
50 |
|
|
android:text="@string/distort"
|
51 |
|
|
android:textSize="12dp"/>
|
52 |
|
|
|
53 |
|
|
<RadioButton
|
54 |
|
|
android:id="@+id/scratchpadSink"
|
55 |
|
|
android:layout_width="wrap_content"
|
56 |
|
|
android:layout_height="wrap_content"
|
57 |
|
|
android:onClick="Sink"
|
58 |
|
|
android:text="@string/sink"
|
59 |
|
|
android:textSize="12dp"/>
|
60 |
|
|
|
61 |
|
|
<RadioButton
|
62 |
|
|
android:id="@+id/scratchpadTransparency"
|
63 |
|
|
android:layout_width="wrap_content"
|
64 |
|
|
android:layout_height="wrap_content"
|
65 |
|
|
android:onClick="Transparency"
|
66 |
|
|
android:text="@string/transparency"
|
67 |
|
|
android:textSize="12dp"/>
|
68 |
|
|
|
69 |
|
|
<RadioButton
|
70 |
|
|
android:id="@+id/scratchpadMacroblock"
|
71 |
|
|
android:layout_width="wrap_content"
|
72 |
|
|
android:layout_height="wrap_content"
|
73 |
|
|
android:onClick="Macroblock"
|
74 |
|
|
android:text="@string/macroblock"
|
75 |
|
|
android:textSize="12dp"/>
|
76 |
|
|
|
77 |
|
|
<RadioButton
|
78 |
|
|
android:id="@+id/scratchpadBrightness"
|
79 |
|
|
android:layout_width="wrap_content"
|
80 |
|
|
android:layout_height="wrap_content"
|
81 |
|
|
android:onClick="Chroma"
|
82 |
|
|
android:text="@string/chroma"
|
83 |
|
|
android:textSize="12dp"/>
|
84 |
|
|
|
85 |
|
|
</RadioGroup>
|
86 |
|
|
|
87 |
|
|
<View
|
88 |
|
|
android:layout_height="2dip"
|
89 |
|
|
android:background="#FF0000"
|
90 |
|
|
android:layout_width="match_parent"/>
|
91 |
|
|
|
92 |
|
|
<TextView
|
93 |
|
|
android:layout_width="wrap_content"
|
94 |
|
|
android:layout_height="wrap_content"
|
95 |
|
|
android:text="@string/remove"
|
96 |
|
|
android:id="@+id/textView2"
|
97 |
|
|
android:layout_gravity="center_horizontal"/>
|
98 |
|
|
|
99 |
|
|
<TableLayout
|
100 |
|
|
android:layout_width="fill_parent"
|
101 |
|
|
android:layout_height="wrap_content"
|
102 |
|
|
android:paddingTop="10dp"
|
103 |
|
|
android:paddingBottom="10dp"
|
104 |
|
|
android:stretchColumns="0,1"
|
105 |
|
|
android:paddingLeft="10dp"
|
106 |
|
|
android:paddingRight="10dp">
|
107 |
|
|
|
108 |
|
|
<TableRow
|
109 |
|
|
android:layout_width="wrap_content"
|
110 |
|
|
android:layout_height="wrap_content"
|
111 |
|
|
android:layout_gravity="center"
|
112 |
|
|
android:orientation="vertical">
|
113 |
|
|
|
114 |
|
|
<TextView
|
115 |
|
|
android:layout_width="match_parent"
|
116 |
|
|
android:layout_height="wrap_content"
|
117 |
|
|
android:text="@string/id"
|
118 |
|
|
android:id="@+id/textView3"
|
119 |
|
|
android:layout_gravity="center"/>
|
120 |
|
|
|
121 |
|
|
<Spinner
|
122 |
|
|
android:layout_width="fill_parent"
|
123 |
|
|
android:layout_height="40dp"
|
124 |
|
|
android:id="@+id/effects2d_spinnerID"/>
|
125 |
|
|
</TableRow>
|
126 |
|
|
|
127 |
|
|
<TableRow
|
128 |
|
|
android:layout_width="wrap_content"
|
129 |
|
|
android:layout_height="wrap_content"
|
130 |
|
|
android:layout_gravity="center">
|
131 |
|
|
|
132 |
|
|
<TextView
|
133 |
|
|
android:layout_width="match_parent"
|
134 |
|
|
android:layout_height="wrap_content"
|
135 |
|
|
android:text="@string/name"
|
136 |
|
|
android:id="@+id/textView4"
|
137 |
|
|
android:layout_gravity="center"/>
|
138 |
|
|
|
139 |
|
|
<Spinner
|
140 |
|
|
android:layout_width="fill_parent"
|
141 |
|
|
android:layout_height="40dp"
|
142 |
|
|
android:id="@+id/effects2d_spinnerName"/>
|
143 |
|
|
</TableRow>
|
144 |
|
|
|
145 |
|
|
<TableRow
|
146 |
|
|
android:layout_width="wrap_content"
|
147 |
|
|
android:layout_height="wrap_content"
|
148 |
|
|
android:layout_gravity="center">
|
149 |
|
|
|
150 |
|
|
<TextView
|
151 |
|
|
android:layout_width="wrap_content"
|
152 |
|
|
android:layout_height="wrap_content"
|
153 |
|
|
android:text="@string/type"
|
154 |
|
|
android:id="@+id/textView5"
|
155 |
|
|
android:layout_gravity="center"/>
|
156 |
|
|
|
157 |
|
|
<Spinner
|
158 |
|
|
android:layout_width="fill_parent"
|
159 |
|
|
android:layout_height="40dp"
|
160 |
|
|
android:id="@+id/effects2d_spinnerType"/>
|
161 |
|
|
</TableRow>
|
162 |
|
|
|
163 |
|
|
</TableLayout>
|
164 |
|
|
<View
|
165 |
|
|
android:layout_height="2dip"
|
166 |
|
|
android:background="#FF0000"
|
167 |
|
|
android:layout_width="match_parent"
|
168 |
|
|
/>
|
169 |
|
|
|
170 |
|
|
<TextView
|
171 |
|
|
android:layout_width="wrap_content"
|
172 |
|
|
android:layout_height="wrap_content"
|
173 |
|
|
android:text="@string/list"
|
174 |
|
|
android:id="@+id/textView6"
|
175 |
|
|
android:layout_gravity="center_horizontal"/>
|
176 |
|
|
</LinearLayout>
|
177 |
|
|
|
178 |
|
|
</LinearLayout>
|