/ocr/ocrservice/res/layout/capture.xml
XML | 59 lines | 45 code | 0 blank | 14 comment | 0 complexity | 5af19d28fa6ac1cb57cbfda7e31a1d54 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 <SurfaceView 22 android:id="@+id/preview" 23 android:layout_width="fill_parent" 24 android:layout_height="fill_parent" /> 25 <com.googlecode.eyesfree.ocr.intent.RectsView 26 android:id="@+id/overlay" 27 android:layout_width="fill_parent" 28 android:layout_height="fill_parent" /> 29 <ImageButton 30 android:id="@+id/take_picture" 31 android:layout_width="wrap_content" 32 android:layout_height="wrap_content" 33 android:layout_alignParentRight="true" 34 android:layout_alignParentTop="true" 35 android:background="@drawable/btn_shutter" 36 android:src="@drawable/ic_menu_camera" 37 android:text="@string/take_picture" 38 android:layout_margin="5sp" /> 39 <ImageButton 40 android:id="@+id/toggle_text_detection" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_alignParentRight="true" 44 android:layout_below="@id/take_picture" 45 android:background="@drawable/btn_shutter" 46 android:src="@drawable/ic_menu_close_clear_cancel" 47 android:text="@string/disable_text_detection" 48 android:layout_margin="5sp" /> 49 <TextView 50 android:layout_height="wrap_content" 51 android:layout_width="wrap_content" 52 android:layout_alignParentLeft="true" 53 android:layout_alignParentBottom="true" 54 android:layout_alignParentRight="true" 55 android:text="@string/hint_capture" 56 android:background="#77550000" 57 android:padding="2sp" 58 android:textSize="18sp" /> 59</RelativeLayout>