activity_main.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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:orientation="vertical"
  6. tools:context=".MainActivity" >
  7. <Button
  8. android:id="@+id/initbt"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:text="@string/init" />
  12. <Button
  13. android:id="@+id/loginbt"
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:text="@string/login" />
  17. <LinearLayout
  18. android:id="@+id/role_ll"
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:orientation="horizontal"
  22. android:visibility="gone">
  23. <Button
  24. android:id="@+id/info"
  25. android:layout_width="0dp"
  26. android:layout_height="wrap_content"
  27. android:layout_weight="1"
  28. android:text="@string/create_role" />
  29. <Button
  30. android:id="@+id/server"
  31. android:layout_width="0dp"
  32. android:layout_height="wrap_content"
  33. android:layout_weight="1"
  34. android:text="@string/into_server" />
  35. <Button
  36. android:id="@+id/level"
  37. android:layout_width="0dp"
  38. android:layout_height="wrap_content"
  39. android:layout_weight="1"
  40. android:text="@string/update_role" />
  41. </LinearLayout>
  42. <Button
  43. android:id="@+id/paybt"
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:visibility="gone"
  47. tools:visibility="visible"
  48. android:text="@string/recharge" />
  49. <Button
  50. android:id="@+id/loginout"
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content"
  53. android:visibility="gone"
  54. tools:visibility="visible"
  55. android:text="@string/logout" />
  56. <Button
  57. android:id="@+id/exitbt"
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:text="@string/exit" />
  61. <Button
  62. android:id="@+id/force_exit"
  63. android:layout_width="match_parent"
  64. android:layout_height="wrap_content"
  65. android:visibility="gone"
  66. tools:visibility="visible"
  67. android:text="强制退出" />
  68. </LinearLayout>