/ocr/ocrservice/res/layout/capture.xml

http://eyes-free.googlecode.com/ · 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. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <RelativeLayout
  14. xmlns:android="http://schemas.android.com/apk/res/android"
  15. android:orientation="vertical"
  16. android:layout_width="fill_parent"
  17. android:layout_height="fill_parent">
  18. <SurfaceView
  19. android:id="@+id/preview"
  20. android:layout_width="fill_parent"
  21. android:layout_height="fill_parent" />
  22. <com.googlecode.eyesfree.ocr.intent.RectsView
  23. android:id="@+id/overlay"
  24. android:layout_width="fill_parent"
  25. android:layout_height="fill_parent" />
  26. <ImageButton
  27. android:id="@+id/take_picture"
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:layout_alignParentRight="true"
  31. android:layout_alignParentTop="true"
  32. android:background="@drawable/btn_shutter"
  33. android:src="@drawable/ic_menu_camera"
  34. android:text="@string/take_picture"
  35. android:layout_margin="5sp" />
  36. <ImageButton
  37. android:id="@+id/toggle_text_detection"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_alignParentRight="true"
  41. android:layout_below="@id/take_picture"
  42. android:background="@drawable/btn_shutter"
  43. android:src="@drawable/ic_menu_close_clear_cancel"
  44. android:text="@string/disable_text_detection"
  45. android:layout_margin="5sp" />
  46. <TextView
  47. android:layout_height="wrap_content"
  48. android:layout_width="wrap_content"
  49. android:layout_alignParentLeft="true"
  50. android:layout_alignParentBottom="true"
  51. android:layout_alignParentRight="true"
  52. android:text="@string/hint_capture"
  53. android:background="#77550000"
  54. android:padding="2sp"
  55. android:textSize="18sp" />
  56. </RelativeLayout>