activity_serial.xml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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/button_serial_port_test"
  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:orientation="horizontal"
  27. android:gravity="center_vertical"
  28. android:scrollbars="horizontal" >
  29. <Button
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:id="@+id/serial_open"
  33. style="@style/btn_list_style"
  34. android:text="@string/btn_serial_open"/>
  35. <Button
  36. android:layout_width="wrap_content"
  37. android:layout_marginLeft="@dimen/btn_padding"
  38. android:layout_height="wrap_content"
  39. android:id="@+id/serial_receive"
  40. style="@style/btn_list_style"
  41. android:text="@string/btn_serial_receive"/>
  42. <Button
  43. android:layout_width="wrap_content"
  44. android:layout_marginLeft="@dimen/btn_padding"
  45. android:layout_height="wrap_content"
  46. android:id="@+id/serial_send"
  47. style="@style/btn_list_style"
  48. android:text="@string/btn_serial_send"/>
  49. <Button
  50. android:layout_width="wrap_content"
  51. android:layout_marginLeft="@dimen/btn_padding"
  52. android:layout_height="wrap_content"
  53. android:id="@+id/serial_close"
  54. style="@style/btn_list_style"
  55. android:text="@string/btn_serial_close"/>
  56. <Button
  57. android:layout_width="wrap_content"
  58. android:layout_marginLeft="@dimen/btn_padding"
  59. android:layout_height="wrap_content"
  60. android:id="@+id/scan_clear"
  61. style="@style/btn_list_style"
  62. android:text="@string/btn_clear_content"/>
  63. </LinearLayout>
  64. </HorizontalScrollView>
  65. </LinearLayout>