1
|
<?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:onClick="Brightness"
|
6
|
android:orientation="vertical" >
|
7
|
|
8
|
<org.distorted.examples.effects2d.Effects2DSurfaceView
|
9
|
android:id="@+id/scratchpadSurfaceView"
|
10
|
android:layout_width="fill_parent"
|
11
|
android:layout_height="0dp"
|
12
|
android:layout_weight="1" />
|
13
|
|
14
|
<LinearLayout
|
15
|
android:id="@+id/linearLayout1"
|
16
|
android:layout_width="fill_parent"
|
17
|
android:layout_height="wrap_content"
|
18
|
android:layout_weight="0.07"
|
19
|
android:gravity="center|fill_horizontal" >
|
20
|
|
21
|
<RadioGroup
|
22
|
android:id="@+id/radioGroup1"
|
23
|
android:layout_width="wrap_content"
|
24
|
android:layout_height="wrap_content"
|
25
|
android:paddingLeft="5dp"
|
26
|
android:paddingRight="10dp" >
|
27
|
|
28
|
<RadioButton
|
29
|
android:id="@+id/scratchpadDistort"
|
30
|
android:layout_width="wrap_content"
|
31
|
android:layout_height="wrap_content"
|
32
|
android:checked="true"
|
33
|
android:onClick="Distort"
|
34
|
android:text="@string/distort" />
|
35
|
|
36
|
<RadioButton
|
37
|
android:id="@+id/scratchpadSink"
|
38
|
android:layout_width="wrap_content"
|
39
|
android:layout_height="wrap_content"
|
40
|
android:onClick="Sink"
|
41
|
android:text="@string/sink" />
|
42
|
|
43
|
<RadioButton
|
44
|
android:id="@+id/scratchpadTransparency"
|
45
|
android:layout_width="wrap_content"
|
46
|
android:layout_height="wrap_content"
|
47
|
android:onClick="Transparency"
|
48
|
android:text="@string/transparency" />
|
49
|
|
50
|
<RadioButton
|
51
|
android:id="@+id/scratchpadMacroblock"
|
52
|
android:layout_width="wrap_content"
|
53
|
android:layout_height="wrap_content"
|
54
|
android:onClick="Macroblock"
|
55
|
android:text="@string/macroblock" />
|
56
|
|
57
|
<RadioButton
|
58
|
android:id="@+id/scratchpadBrightness"
|
59
|
android:layout_width="wrap_content"
|
60
|
android:layout_height="wrap_content"
|
61
|
android:onClick="Brightness"
|
62
|
android:text="@string/brightness" />
|
63
|
|
64
|
</RadioGroup>
|
65
|
|
66
|
<LinearLayout
|
67
|
android:layout_width="match_parent"
|
68
|
android:layout_height="match_parent"
|
69
|
android:gravity="center_vertical|right"
|
70
|
android:orientation="vertical"
|
71
|
android:paddingLeft="10dp"
|
72
|
android:paddingRight="5dp" >
|
73
|
|
74
|
<LinearLayout
|
75
|
android:layout_width="match_parent"
|
76
|
android:layout_height="45dp"
|
77
|
android:gravity="center_vertical"
|
78
|
android:orientation="horizontal" >
|
79
|
|
80
|
<TextView
|
81
|
android:id="@+id/scratchpadTextCount"
|
82
|
android:layout_width="wrap_content"
|
83
|
android:layout_height="wrap_content"
|
84
|
android:layout_weight="1"
|
85
|
android:text="@string/count"
|
86
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
87
|
|
88
|
<SeekBar
|
89
|
android:id="@+id/scratchpadSeekCount"
|
90
|
android:layout_width="105dp"
|
91
|
android:layout_height="wrap_content"
|
92
|
android:layout_weight="1"
|
93
|
android:paddingLeft="0dp"
|
94
|
android:paddingRight="3dp" />
|
95
|
</LinearLayout>
|
96
|
|
97
|
<LinearLayout
|
98
|
android:layout_width="match_parent"
|
99
|
android:layout_height="wrap_content"
|
100
|
android:gravity="center_vertical"
|
101
|
android:orientation="horizontal" >
|
102
|
|
103
|
<TextView
|
104
|
android:id="@+id/scratchpadTextDuration"
|
105
|
android:layout_width="0dp"
|
106
|
android:layout_height="wrap_content"
|
107
|
android:layout_weight="1"
|
108
|
android:text="@string/duration"
|
109
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
110
|
|
111
|
<SeekBar
|
112
|
android:id="@+id/scratchpadSeekDuration"
|
113
|
android:layout_width="106dp"
|
114
|
android:layout_height="wrap_content"
|
115
|
android:paddingLeft="0dp"
|
116
|
android:paddingRight="3dp" />
|
117
|
|
118
|
</LinearLayout>
|
119
|
|
120
|
<LinearLayout
|
121
|
android:layout_width="match_parent"
|
122
|
android:layout_height="wrap_content"
|
123
|
android:orientation="horizontal" >
|
124
|
|
125
|
<Button
|
126
|
android:id="@+id/scratchpadButtonPrint"
|
127
|
android:layout_width="24dp"
|
128
|
android:layout_height="match_parent"
|
129
|
android:layout_weight="0.77"
|
130
|
android:onClick="Print"
|
131
|
android:text="@string/print" />
|
132
|
|
133
|
<Button
|
134
|
android:id="@+id/scratchpadButtonAbort"
|
135
|
android:layout_width="wrap_content"
|
136
|
android:layout_height="match_parent"
|
137
|
android:layout_weight="0.39"
|
138
|
android:onClick="Abort"
|
139
|
android:text="@string/abort" />
|
140
|
</LinearLayout>
|
141
|
|
142
|
<LinearLayout
|
143
|
android:layout_width="match_parent"
|
144
|
android:layout_height="45dp"
|
145
|
android:gravity="center_vertical"
|
146
|
android:orientation="horizontal" >
|
147
|
|
148
|
<TextView
|
149
|
android:id="@+id/scratchpadTextID"
|
150
|
android:layout_width="0dp"
|
151
|
android:layout_height="wrap_content"
|
152
|
android:layout_weight="1"
|
153
|
android:text="@string/id"
|
154
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
155
|
|
156
|
<SeekBar
|
157
|
android:id="@+id/scratchpadSeekID"
|
158
|
android:layout_width="110dp"
|
159
|
android:layout_height="wrap_content" />
|
160
|
|
161
|
</LinearLayout>
|
162
|
|
163
|
</LinearLayout>
|
164
|
|
165
|
</LinearLayout>
|
166
|
|
167
|
</LinearLayout>
|