activity_set.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="#FFFFFF"
  6. android:orientation="vertical" >
  7. <LinearLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:orientation="vertical" >
  11. <ImageView
  12. android:layout_width="match_parent"
  13. android:layout_height="0dp"
  14. android:layout_weight="4"
  15. android:background="@drawable/login_background" />
  16. <LinearLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="0dp"
  19. android:layout_weight="6"
  20. android:background="#FFFFFF" >
  21. </LinearLayout>
  22. </LinearLayout>
  23. <RelativeLayout
  24. android:id="@+id/rl_login_center"
  25. android:layout_width="match_parent"
  26. android:layout_height="wrap_content" >
  27. <LinearLayout
  28. android:id="@+id/ll_login_center"
  29. android:layout_width="match_parent"
  30. android:layout_height="170dp"
  31. android:background="@drawable/login_ll_background"
  32. android:orientation="vertical" >
  33. <RelativeLayout
  34. android:layout_width="match_parent"
  35. android:layout_height="0dp"
  36. android:layout_weight="1"
  37. android:focusable="true"
  38. android:focusableInTouchMode="true" >
  39. <TextView
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:layout_centerInParent="true"
  43. android:background="#00000000"
  44. android:text="服务器地址和端口设置"
  45. android:textColor="@color/black"
  46. android:textSize="16dp"
  47. android:textStyle="bold" />
  48. </RelativeLayout>
  49. <RelativeLayout
  50. android:layout_width="match_parent"
  51. android:layout_height="0dp"
  52. android:layout_weight="1" >
  53. <ImageView
  54. android:id="@+id/iv_ip"
  55. android:layout_width="@dimen/icon_serveraddress_width"
  56. android:layout_height="@dimen/icon_serveraddress_height"
  57. android:layout_centerVertical="true"
  58. android:layout_marginLeft="@dimen/login_icon_left"
  59. android:background="@drawable/icon_serveraddress" />
  60. <EditText
  61. android:id="@+id/set_ip"
  62. android:layout_width="match_parent"
  63. android:layout_height="match_parent"
  64. android:layout_marginLeft="10dp"
  65. android:layout_marginRight="10dp"
  66. android:layout_toLeftOf="@+id/iv_user_icon_right"
  67. android:layout_toRightOf="@+id/iv_ip"
  68. android:background="#00000000"
  69. android:gravity="center"
  70. android:hint="服务器地址"
  71. android:imeOptions="actionNext"
  72. android:singleLine="true"
  73. android:textColorHint="@color/tv_color4_gray"
  74. android:textSize="15dp"
  75. android:textStyle="bold" />
  76. <ImageView
  77. android:id="@+id/iv_user_icon_right"
  78. android:layout_width="@dimen/icon_serveraddress_width"
  79. android:layout_height="@dimen/icon_serveraddress_height"
  80. android:layout_alignParentRight="true"
  81. android:layout_centerVertical="true"
  82. android:layout_marginRight="@dimen/login_icon_left"
  83. android:src="@drawable/login_user_icon"
  84. android:visibility="invisible" />
  85. <View
  86. android:layout_width="match_parent"
  87. android:layout_height="1dp"
  88. android:layout_alignParentBottom="true"
  89. android:layout_marginLeft="20dp"
  90. android:layout_marginRight="20dp"
  91. android:background="#D5D5D5" />
  92. </RelativeLayout>
  93. <RelativeLayout
  94. android:layout_width="match_parent"
  95. android:layout_height="0dp"
  96. android:layout_weight="1" >
  97. <ImageView
  98. android:id="@+id/iv_servetport"
  99. android:layout_width="@dimen/icon_servetport_width"
  100. android:layout_height="@dimen/icon_servetport_height"
  101. android:layout_centerVertical="true"
  102. android:layout_marginLeft="@dimen/set_servetport_icon_left"
  103. android:background="@drawable/icon_servetport" />
  104. <EditText
  105. android:id="@+id/set_port"
  106. android:layout_width="match_parent"
  107. android:layout_height="match_parent"
  108. android:layout_marginLeft="10dp"
  109. android:layout_marginRight="10dp"
  110. android:layout_toLeftOf="@+id/iv_password_icon_right"
  111. android:layout_toRightOf="@+id/iv_servetport"
  112. android:inputType="number"
  113. android:layout_weight="1"
  114. android:background="#00000000"
  115. android:gravity="center"
  116. android:hint="服务器端口"
  117. android:imeOptions="actionDone"
  118. android:singleLine="true"
  119. android:textColorHint="@color/tv_color4_gray"
  120. android:textSize="15dp"
  121. android:textStyle="bold" />
  122. <ImageView
  123. android:id="@+id/iv_password_icon_right"
  124. android:layout_width="@dimen/icon_servetport_width"
  125. android:layout_height="@dimen/icon_servetport_height"
  126. android:layout_alignParentRight="true"
  127. android:layout_centerVertical="true"
  128. android:layout_marginRight="@dimen/login_icon_left"
  129. android:src="@drawable/login_psssword"
  130. android:visibility="invisible" />
  131. </RelativeLayout>
  132. </LinearLayout>
  133. <RelativeLayout
  134. android:id="@+id/rl_save"
  135. android:layout_width="wrap_content"
  136. android:layout_height="wrap_content"
  137. android:layout_below="@+id/ll_login_center"
  138. android:layout_centerHorizontal="true"
  139. android:background="@drawable/btn_save" >
  140. </RelativeLayout>
  141. </RelativeLayout>
  142. <RelativeLayout
  143. android:id="@+id/set_cancle"
  144. android:layout_width="wrap_content"
  145. android:layout_height="wrap_content"
  146. android:layout_below="@+id/rl_login_center"
  147. android:layout_centerHorizontal="true"
  148. android:layout_marginTop="15dp"
  149. android:background="@drawable/btn_set_cancle" >
  150. </RelativeLayout>
  151. </RelativeLayout>