activity_main.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@android:color/white"
  7. android:orientation="vertical"
  8. tools:context=".MainActivity">
  9. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:layout_marginTop="10dp"
  13. android:orientation="vertical">
  14. <TextView
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:paddingTop="20dp"
  18. android:visibility="gone"
  19. android:text="@string/label_server_ip"
  20. android:textAppearance="@android:style/TextAppearance" />
  21. <EditText
  22. android:id="@+id/editText_server_host"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:hint="192.168.43.1"
  26. android:visibility="gone"
  27. android:maxLength="15"
  28. android:ems="7"
  29. android:inputType="text"
  30. android:minHeight="48dp"
  31. tools:ignore="LabelFor,SpeakableTextPresentCheck"
  32. android:importantForAutofill="no" />
  33. <TextView
  34. android:layout_width="match_parent"
  35. android:layout_height="wrap_content"
  36. android:paddingTop="20dp"
  37. android:text="远程设备端端口:"
  38. android:textAppearance="@android:style/TextAppearance" />
  39. <EditText
  40. android:id="@+id/editText_server_port"
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:hint="15555"
  44. android:maxLength="7"
  45. android:ems="7"
  46. android:inputType="text"
  47. android:minHeight="48dp"
  48. tools:ignore="LabelFor,SpeakableTextPresentCheck"
  49. android:importantForAutofill="no" />
  50. <TextView
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content"
  53. android:layout_marginTop="20dp"
  54. android:text="@string/label_video_resolution"
  55. android:textAppearance="@android:style/TextAppearance" />
  56. <Spinner
  57. android:id="@+id/spinner_video_resolution"
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:entries="@array/options_resolution_keys"
  61. android:minHeight="48dp"
  62. tools:ignore="DuplicateSpeakableTextCheck" />
  63. <TextView
  64. android:layout_width="match_parent"
  65. android:layout_height="wrap_content"
  66. android:layout_marginTop="20dp"
  67. android:text="@string/label_video_bitrate"
  68. android:textAppearance="@android:style/TextAppearance" />
  69. <Spinner
  70. android:id="@+id/spinner_video_bitrate"
  71. android:layout_width="match_parent"
  72. android:layout_height="wrap_content"
  73. android:entries="@array/options_bitrate_keys"
  74. android:minHeight="48dp" />
  75. </LinearLayout>
  76. <LinearLayout
  77. android:visibility="gone"
  78. android:layout_width="match_parent"
  79. android:layout_height="wrap_content"
  80. android:layout_marginTop="20dp"
  81. android:orientation="horizontal">
  82. <Switch
  83. android:id="@+id/switch0"
  84. android:layout_width="0dp"
  85. android:layout_height="48dp"
  86. android:layout_weight="1"
  87. android:text="@string/switch0"
  88. android:textSize="15sp" />
  89. </LinearLayout>
  90. <LinearLayout
  91. android:layout_width="match_parent"
  92. android:layout_height="wrap_content"
  93. android:layout_marginTop="20dp"
  94. android:orientation="horizontal">
  95. <Switch
  96. android:id="@+id/switch1"
  97. android:layout_width="0dp"
  98. android:layout_height="48dp"
  99. android:layout_weight="1"
  100. android:text="@string/switch1"
  101. android:textSize="15sp" />
  102. </LinearLayout>
  103. <LinearLayout
  104. android:layout_width="match_parent"
  105. android:layout_height="wrap_content"
  106. android:layout_marginTop="40dp"
  107. android:orientation="horizontal">
  108. <Button
  109. android:id="@+id/button_start"
  110. android:layout_width="0dp"
  111. android:layout_height="wrap_content"
  112. android:layout_weight="1"
  113. android:text="@string/action_start"
  114. android:textSize="30sp" />
  115. </LinearLayout>
  116. <View android:layout_width="match_parent"
  117. android:layout_height="wrap_content"
  118. android:layout_weight="1"/>
  119. <TextView
  120. android:layout_width="match_parent"
  121. android:layout_height="wrap_content"
  122. android:layout_gravity="center_horizontal"
  123. android:text="恺恩公司郑重声明:仅允许恺恩公司员工使用此软件调试本公司的硬件产品。它用后果自负。"/>
  124. <TextView
  125. android:id="@+id/app_ver_right"
  126. android:layout_width="match_parent"
  127. android:layout_height="wrap_content"
  128. android:gravity="center"
  129. android:layout_gravity="center_horizontal"
  130. android:text="V1\n湖南恺恩 版权所有"/>
  131. </LinearLayout>