The new 0.9 SDK Android client (for real this time).
[zxing.git] / android / res / layout / capture.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (C) 2008 Google Inc.
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16  -->
17 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
18              android:layout_width="fill_parent"
19              android:layout_height="fill_parent">
20
21   <SurfaceView android:id="@+id/preview_view"
22                android:layout_width="fill_parent"
23                android:layout_height="fill_parent"
24                android:layout_centerInParent="true"/>
25
26   <com.android.barcodes.ViewfinderView
27                   android:id="@+id/viewfinder_view"
28                   android:layout_width="fill_parent"
29                   android:layout_height="fill_parent"
30                   android:background="@color/transparent"/>
31
32   <LinearLayout
33                 android:orientation="vertical"
34                 android:layout_width="fill_parent"
35                 android:layout_height="fill_parent"
36                 android:background="@color/transparent">
37
38     <FrameLayout
39                  android:layout_width="fill_parent"
40                  android:layout_height="fill_parent"
41                  android:layout_weight="1"
42                  android:background="@color/transparent"/>
43
44     <LinearLayout android:id="@+id/status_view"
45                   android:orientation="horizontal"
46                   android:layout_width="fill_parent"
47                   android:layout_height="wrap_content"
48                   android:layout_weight="0"
49                   android:background="@color/status_view"
50                   android:baselineAligned="false"
51                   android:padding="4px">
52
53       <TextView android:id="@+id/status_text_view"
54                 android:layout_width="wrap_content"
55                 android:layout_height="wrap_content"
56                 android:layout_gravity="left|center_vertical"
57                 android:layout_weight="1"
58                 android:text="@string/msg_default_status"
59                 android:textColor="@color/status_text"/>
60
61       <Button android:id="@+id/status_action_button"
62               android:layout_width="wrap_content"
63               android:layout_height="wrap_content"
64               android:layout_gravity="center|fill_horizontal"
65               android:visibility="gone"/>
66
67     </LinearLayout>
68
69   </LinearLayout>
70
71 </FrameLayout>