activity_scan.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:paddingBottom="@dimen/activity_vertical_margin"
  6. android:paddingLeft="@dimen/activity_horizontal_margin"
  7. android:orientation="vertical"
  8. android:paddingRight="@dimen/activity_horizontal_margin"
  9. android:paddingTop="@dimen/activity_vertical_margin"
  10. android:padding="@dimen/device_padding" >
  11. <TextView
  12. android:layout_height="0dp"
  13. android:layout_weight="8"
  14. android:id="@+id/scan_text"
  15. android:layout_marginBottom="3dp"
  16. android:text="@string/test_scan"
  17. android:layout_width="match_parent"
  18. style="@style/txtStyle"/>
  19. <HorizontalScrollView
  20. android:layout_width="match_parent"
  21. android:layout_height="0dp"
  22. android:layout_weight="1.5" >
  23. <LinearLayout
  24. android:layout_width="wrap_content"
  25. android:layout_height="fill_parent"
  26. android:gravity="center_vertical"
  27. android:orientation="horizontal"
  28. android:scrollbars="horizontal">
  29. <Button
  30. android:id="@+id/scan_front"
  31. style="@style/btn_list_style"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:text="@string/test_scan_front" />
  35. <Button
  36. android:id="@+id/scan_back"
  37. style="@style/btn_list_style"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_marginLeft="@dimen/btn_padding"
  41. android:text="@string/test_scan_back" />
  42. <Button
  43. android:id="@+id/scan_clear"
  44. style="@style/btn_list_style"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:layout_marginLeft="@dimen/btn_padding"
  48. android:text="@string/btn_clear_content" />
  49. </LinearLayout>
  50. </HorizontalScrollView>
  51. </LinearLayout>