diff options
Diffstat (limited to 'res/layout/activity_fwupdate.xml')
-rw-r--r-- | res/layout/activity_fwupdate.xml | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/res/layout/activity_fwupdate.xml b/res/layout/activity_fwupdate.xml new file mode 100644 index 0000000..856297b --- /dev/null +++ b/res/layout/activity_fwupdate.xml | |||
@@ -0,0 +1,140 @@ | |||
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:layout_margin="10dip" | ||
6 | android:orientation="vertical" > | ||
7 | |||
8 | <LinearLayout | ||
9 | android:layout_width="fill_parent" | ||
10 | android:layout_height="wrap_content" | ||
11 | android:gravity="left" | ||
12 | android:orientation="horizontal" | ||
13 | android:paddingBottom="10dp" | ||
14 | android:paddingTop="10dp" > | ||
15 | |||
16 | <TextView | ||
17 | style="@style/nameStyle" | ||
18 | android:layout_width="0dp" | ||
19 | android:layout_height="fill_parent" | ||
20 | android:layout_gravity="left|center_vertical" | ||
21 | android:layout_weight="1" | ||
22 | android:text="@string/cur_image" /> | ||
23 | |||
24 | <TextView | ||
25 | android:id="@+id/tw_target" | ||
26 | style="@style/dataStyle1" | ||
27 | android:layout_width="0dp" | ||
28 | android:layout_height="fill_parent" | ||
29 | android:layout_weight="1.5" | ||
30 | android:text="@string/no_image" /> | ||
31 | </LinearLayout> | ||
32 | |||
33 | <LinearLayout | ||
34 | android:layout_width="fill_parent" | ||
35 | android:layout_height="wrap_content" | ||
36 | android:gravity="left" | ||
37 | android:orientation="horizontal" | ||
38 | android:paddingBottom="10dp" | ||
39 | android:paddingTop="10dp" > | ||
40 | |||
41 | <TextView | ||
42 | style="@style/nameStyle" | ||
43 | android:layout_width="0dp" | ||
44 | android:layout_height="fill_parent" | ||
45 | android:layout_gravity="left|center_vertical" | ||
46 | android:layout_weight="1" | ||
47 | android:text="@string/new_image" /> | ||
48 | |||
49 | <TextView | ||
50 | android:id="@+id/tw_file" | ||
51 | style="@style/dataStyle1" | ||
52 | android:layout_width="0dp" | ||
53 | android:layout_height="fill_parent" | ||
54 | android:layout_weight="1.5" | ||
55 | android:gravity="left" | ||
56 | android:text="@string/no_image_sel" | ||
57 | android:textAlignment="gravity" /> | ||
58 | </LinearLayout> | ||
59 | |||
60 | <LinearLayout | ||
61 | android:layout_width="fill_parent" | ||
62 | android:layout_height="wrap_content" | ||
63 | android:gravity="center" | ||
64 | android:orientation="horizontal" | ||
65 | android:paddingBottom="5dp" | ||
66 | android:paddingTop="5dp" > | ||
67 | |||
68 | <Button | ||
69 | android:id="@+id/btn_load_a" | ||
70 | style="?android:attr/buttonStyle" | ||
71 | android:layout_width="wrap_content" | ||
72 | android:layout_height="fill_parent" | ||
73 | android:layout_gravity="center" | ||
74 | android:gravity="center" | ||
75 | android:onClick="onLoad" | ||
76 | android:text="@string/load_image_a" /> | ||
77 | |||
78 | <Button | ||
79 | android:id="@+id/btn_load_b" | ||
80 | style="?android:attr/buttonStyle" | ||
81 | android:layout_width="wrap_content" | ||
82 | android:layout_height="fill_parent" | ||
83 | android:layout_gravity="center" | ||
84 | android:onClick="onLoad" | ||
85 | android:text="@string/load_image_b" /> | ||
86 | |||
87 | <Button | ||
88 | android:id="@+id/btn_load_c" | ||
89 | style="?android:attr/buttonStyle" | ||
90 | android:layout_width="wrap_content" | ||
91 | android:layout_height="fill_parent" | ||
92 | android:layout_gravity="center" | ||
93 | android:onClick="onLoadCustom" | ||
94 | android:text="@string/load_image_c" /> | ||
95 | </LinearLayout> | ||
96 | |||
97 | <TextView | ||
98 | android:id="@+id/tw_info" | ||
99 | style="@style/dataStyle" | ||
100 | android:layout_width="fill_parent" | ||
101 | android:layout_height="wrap_content" | ||
102 | android:layout_gravity="center" | ||
103 | android:layout_marginBottom="5dp" | ||
104 | android:layout_weight="0" | ||
105 | android:gravity="center_horizontal" | ||
106 | android:text="@string/idle" | ||
107 | android:textSize="14dp" /> | ||
108 | |||
109 | <ProgressBar | ||
110 | android:id="@+id/pb_progress" | ||
111 | style="@android:style/Widget.ProgressBar.Horizontal" | ||
112 | android:layout_width="match_parent" | ||
113 | android:layout_height="wrap_content" | ||
114 | android:layout_marginBottom="5dp" | ||
115 | android:indeterminate="false" | ||
116 | android:max="100" | ||
117 | android:maxHeight="15dp" | ||
118 | android:minHeight="15dp" | ||
119 | android:progress="0" /> | ||
120 | |||
121 | <TextView | ||
122 | android:id="@+id/tw_log" | ||
123 | style="@style/logStyle" | ||
124 | android:layout_width="fill_parent" | ||
125 | android:layout_height="wrap_content" | ||
126 | android:layout_gravity="bottom" | ||
127 | android:layout_weight="1" | ||
128 | android:lines="10" | ||
129 | android:padding="5dp" /> | ||
130 | |||
131 | <Button | ||
132 | android:id="@+id/btn_start" | ||
133 | android:layout_width="fill_parent" | ||
134 | android:layout_height="wrap_content" | ||
135 | android:layout_gravity="bottom" | ||
136 | android:layout_weight="0" | ||
137 | android:onClick="onStart" | ||
138 | android:text="@string/start_prog" /> | ||
139 | |||
140 | </LinearLayout> \ No newline at end of file | ||