/ocr/ocrservice/res/layout/recognize.xml
XML | 91 lines | 77 code | 0 blank | 14 comment | 0 complexity | 1d69f70f76dc8fbfe2bb42095c3f69cf MD5 | raw file
1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2011 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<RelativeLayout 17 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 <ImageView 22 android:id="@+id/image" 23 android:scaleType="fitCenter" 24 android:layout_width="fill_parent" 25 android:layout_height="fill_parent" /> 26 <com.googlecode.eyesfree.ocr.intent.TextRectsView 27 android:id="@+id/overlay" 28 android:layout_width="fill_parent" 29 android:layout_height="fill_parent" /> 30 <RelativeLayout 31 android:id="@+id/layout" 32 android:layout_height="wrap_content" 33 android:layout_width="wrap_content" 34 android:layout_alignParentBottom="true" 35 android:layout_centerHorizontal="true" 36 android:background="#77000000" 37 android:padding="10sp"> 38 <ProgressBar 39 android:id="@+id/progress" 40 style="?android:attr/progressBarStyleHorizontal" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_margin="10dip" 44 android:layout_alignParentTop="true" 45 android:minWidth="300sp" /> 46 <TextView 47 android:id="@+id/progress_percent" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:layout_margin="10dip" 51 android:layout_alignParentLeft="true" 52 android:layout_below="@id/progress" 53 android:text="0%" 54 android:textAppearance="?android:attr/textAppearanceSmall" 55 android:textColor="?android:attr/textColorSecondary" 56 android:shadowRadius="2" /> 57 <TextView 58 android:id="@+id/progress_number" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:layout_marginLeft="50dip" 62 android:layout_marginBottom="10dip" 63 android:layout_marginTop="10dip" 64 android:layout_alignParentLeft="true" 65 android:layout_below="@id/progress" 66 android:text="0/100" 67 android:textAppearance="?android:attr/textAppearanceSmall" 68 android:textColor="?android:attr/textColorSecondary" 69 android:shadowRadius="2" /> 70 <TextView 71 android:id="@+id/progress_status" 72 android:layout_height="wrap_content" 73 android:layout_width="wrap_content" 74 android:layout_below="@+id/progress_number" 75 android:layout_centerHorizontal="true" 76 android:text="Recognizing text..." 77 android:textAppearance="?android:attr/textAppearanceLarge" 78 android:textColor="?android:attr/textColorPrimary" 79 android:shadowRadius="2" /> 80 </RelativeLayout> 81 <ImageButton 82 android:id="@+id/cancel_processing" 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" 85 android:layout_alignParentLeft="true" 86 android:layout_alignParentTop="true" 87 android:background="@drawable/btn_shutter" 88 android:src="@drawable/ic_menu_close_clear_cancel" 89 android:text="cancel processing" 90 android:layout_margin="5sp" /> 91</RelativeLayout>