activity_main.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical"
  7. android:background="@mipmap/main">
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:layout_weight="1"
  12. android:orientation="horizontal"
  13. android:gravity="center">
  14. <Button
  15. android:onClick="test"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:layout_weight="1"
  19. android:drawableTop="@mipmap/main_menu_exam"
  20. android:text="随机测试"
  21. android:background="@null"/>
  22. <Button
  23. android:onClick="test_all"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_weight="1"
  27. android:drawableTop="@mipmap/main_menu_result"
  28. android:text="全部测试"
  29. android:background="@null"/>
  30. </LinearLayout>
  31. <LinearLayout
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:layout_weight="1"
  35. android:orientation="horizontal">
  36. <Button
  37. android:onClick="setting"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_weight="1"
  41. android:drawableTop="@mipmap/main_menu_message"
  42. android:background="@null"
  43. android:text="设置"/>
  44. <Button
  45. android:onClick="quit"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:layout_weight="1"
  49. android:drawableTop="@mipmap/main_menu_exit"
  50. android:background="@null"
  51. android:text="退出"/>
  52. </LinearLayout>
  53. </LinearLayout>