PageRenderTime 23ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/ocr/worldreader/res/layout/recognize.xml

http://eyes-free.googlecode.com/
XML | 90 lines | 64 code | 12 blank | 14 comment | 0 complexity | 6ffd674d858aa497af656723e241265b MD5 | raw file
 1<?xml version="1.0" encoding="utf-8"?>
 2<!-- Copyright (C) 2009 Google Inc.
 3
 4     Licensed under the Apache License, Version 2.0 (the "License");
 5     you may not use this file except in compliance with the License.
 6     You may obtain a copy of the License at
 7
 8          http://www.apache.org/licenses/LICENSE-2.0
 9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    android:orientation="vertical"
19    android:layout_width="fill_parent"
20    android:layout_height="fill_parent">
21      
22    <ImageView android:id="@+id/image"
23        android:layout_width="fill_parent"
24        android:layout_height="fill_parent" />
25      
26    <com.google.marvin.worldreader.RectsView android:id="@+id/overlay"
27        android:layout_width="fill_parent"
28        android:layout_height="fill_parent" />
29    
30    <RelativeLayout android:id="@+id/layout"
31        android:layout_height="wrap_content"
32        android:layout_width="wrap_content"
33        android:layout_alignParentBottom="true"
34        android:layout_centerHorizontal="true"
35        android:background="#77000000"
36        android:padding="10sp">
37        
38       <ProgressBar android:id="@+id/progress"
39            style="?android:attr/progressBarStyleHorizontal"
40            android:layout_width="wrap_content"
41            android:layout_height="wrap_content"
42            android:layout_margin="10dip"
43            android:layout_alignParentTop="true"
44            android:minWidth="300sp" />
45            
46        <TextView android:id="@+id/progress_percent"
47            android:layout_width="wrap_content"
48            android:layout_height="wrap_content"
49            android:layout_margin="10dip"
50            android:layout_alignParentLeft="true"
51            android:layout_below="@id/progress"
52            android:text="0%"
53            android:textAppearance="?android:attr/textAppearanceSmall"
54            android:textColor="?android:attr/textColorSecondary"
55            android:shadowRadius="2" />
56            
57        <TextView android:id="@+id/progress_number"
58            android:layout_width="wrap_content"
59            android:layout_height="wrap_content"
60            android:layout_marginLeft="50dip"
61            android:layout_marginBottom="10dip"
62            android:layout_marginTop="10dip"
63            android:layout_alignParentLeft="true"
64            android:layout_below="@id/progress"
65            android:text="0/100"
66            android:textAppearance="?android:attr/textAppearanceSmall"
67            android:textColor="?android:attr/textColorSecondary"
68            android:shadowRadius="2" />
69        
70        <TextView android:id="@+id/progress_status"
71            android:layout_height="wrap_content"
72            android:layout_width="wrap_content"
73            android:layout_below="@+id/progress_number"
74            android:layout_centerHorizontal="true"
75            android:text="Recognizing text..."
76            android:textAppearance="?android:attr/textAppearanceLarge"
77            android:textColor="?android:attr/textColorPrimary"
78            android:shadowRadius="2" />
79        
80    </RelativeLayout>
81      
82    <Button android:id="@+id/cancelOcr" 
83        android:layout_height="wrap_content"
84        android:layout_width="wrap_content"
85        android:layout_alignParentLeft="true"
86        android:layout_alignParentTop="true"
87        android:text="&lt; Cancel" />
88    
89
90</RelativeLayout>