activity_main1.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:id="@+id/main_layout"
  6. android:background="#FF8C00"
  7. android:orientation="vertical" >
  8. <Button
  9. android:id="@+id/btn_up_vm"
  10. android:layout_width="350dp"
  11. android:layout_height="60dp"
  12. android:layout_marginTop="60dp"
  13. android:gravity="center"
  14. android:layout_gravity="center"
  15. android:text="@string/up_string"
  16. android:onClick="btnUp" />
  17. <Button
  18. android:id="@+id/btn_down_vm"
  19. android:layout_width="350dp"
  20. android:layout_height="60dp"
  21. android:layout_marginTop="60dp"
  22. android:gravity="center"
  23. android:layout_gravity="center"
  24. android:text="@string/down_string"
  25. android:onClick="btnDown" />
  26. <Button
  27. android:id="@+id/btn_start_vm"
  28. android:layout_width="350dp"
  29. android:layout_height="60dp"
  30. android:layout_marginTop="60dp"
  31. android:gravity="center"
  32. android:layout_gravity="center"
  33. android:text="@string/start_string"
  34. android:onClick="btnStart" />
  35. <Button
  36. android:id="@+id/btn_stop_vm"
  37. android:layout_width="350dp"
  38. android:layout_height="60dp"
  39. android:layout_marginTop="60dp"
  40. android:gravity="center"
  41. android:layout_gravity="center"
  42. android:text="@string/stop_string"
  43. android:onClick="btnStop" />
  44. <Button
  45. android:id="@+id/btn_back_vm"
  46. android:layout_width="350dp"
  47. android:layout_height="60dp"
  48. android:layout_marginTop="60dp"
  49. android:gravity="center"
  50. android:layout_gravity="center"
  51. android:text="@string/back_string"
  52. android:onClick="btnBack" />
  53. <LinearLayout
  54. android:layout_width="fill_parent"
  55. android:layout_height="0dp"
  56. android:layout_weight="1"
  57. android:orientation="vertical">
  58. </LinearLayout>
  59. <LinearLayout
  60. android:layout_width="fill_parent"
  61. android:layout_height="wrap_content"
  62. android:gravity="bottom"
  63. android:layout_gravity="bottom"
  64. android:orientation="vertical"
  65. android:layout_margin="10dp" >
  66. <View
  67. android:layout_width="fill_parent"
  68. android:layout_height="1.2px"
  69. android:background="@color/white" />
  70. <LinearLayout
  71. android:layout_width="fill_parent"
  72. android:layout_height="wrap_content"
  73. android:orientation="horizontal"
  74. android:layout_margin="10dp" >
  75. <Button
  76. android:id="@+id/btn_connect_vm"
  77. android:layout_width="130dp"
  78. android:layout_height="40dp"
  79. android:text="@string/connect_string"
  80. android:textColor="@color/white"
  81. android:textSize="15dp"
  82. android:onClick="btnConnect" />
  83. <Button
  84. android:id="@+id/btn_group_vm"
  85. android:layout_width="130dp"
  86. android:layout_height="40dp"
  87. android:text="@string/group_string"
  88. android:textColor="@color/white"
  89. android:textSize="15dp"
  90. android:onClick="btnGroup" />
  91. </LinearLayout>
  92. </LinearLayout>
  93. </LinearLayout>