activity_ring.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:keepScreenOn="true"
  6. xmlns:app="http://schemas.android.com/apk/res-auto">
  7. <TextView
  8. android:id="@+id/label"
  9. android:layout_width="wrap_content"
  10. android:layout_height="wrap_content"
  11. android:text="您需要做遊戲啦"
  12. app:layout_constraintStart_toStartOf="parent"
  13. app:layout_constraintEnd_toEndOf="parent"
  14. app:layout_constraintTop_toTopOf="parent"
  15. app:layout_constraintBottom_toBottomOf="parent"
  16. android:textSize="30sp"
  17. app:layout_constraintVertical_bias="0.3"/>
  18. <Button
  19. android:id="@+id/push_back"
  20. android:layout_width="0dp"
  21. android:layout_height="wrap_content"
  22. android:text="推遲"
  23. app:layout_constraintWidth_percent="0.8"
  24. app:layout_constraintStart_toStartOf="parent"
  25. app:layout_constraintEnd_toEndOf="parent"
  26. app:layout_constraintTop_toBottomOf="@id/label"
  27. android:textSize="30sp"
  28. android:layout_marginTop="60dp"/>
  29. <Button
  30. android:id="@+id/now"
  31. android:layout_width="0dp"
  32. android:layout_height="wrap_content"
  33. android:text="現在就做"
  34. app:layout_constraintWidth_percent="0.8"
  35. app:layout_constraintStart_toStartOf="parent"
  36. app:layout_constraintEnd_toEndOf="parent"
  37. android:textSize="30sp"
  38. app:layout_constraintTop_toBottomOf="@id/push_back"
  39. android:layout_marginTop="30dp"/>
  40. </androidx.constraintlayout.widget.ConstraintLayout>