/ocr/ocrservice/res/layout/recognize.xml

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