dialog_three_button.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:orientation="vertical"
  4. android:padding="15dp"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent">
  7. <TextView
  8. android:textSize="24sp"
  9. android:textStyle="bold"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:text="sample title" />
  13. <TextView
  14. android:textSize="20sp"
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:layout_marginTop="10dp"
  18. android:layout_marginBottom="10dp"
  19. android:text="Three button dialog\10yes/no/never" />
  20. <LinearLayout
  21. android:orientation="horizontal"
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content">
  24. <Button
  25. android:id="@+id/button1"
  26. android:layout_width="0dp"
  27. android:layout_height="wrap_content"
  28. android:text="No"
  29. android:layout_weight="1" />
  30. <Button
  31. android:id="@+id/button2"
  32. android:layout_width="0dp"
  33. android:layout_height="wrap_content"
  34. android:text="Yes"
  35. android:layout_weight="1" />
  36. </LinearLayout>
  37. <Button
  38. android:id="@+id/button3"
  39. android:layout_width="match_parent"
  40. android:layout_height="wrap_content"
  41. android:text="Never" />
  42. </LinearLayout>