material_dialog.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:orientation="vertical"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent">
  7. <LinearLayout
  8. android:id="@+id/mainFrame"
  9. android:orientation="vertical"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:layout_marginTop="@dimen/dialog_frame_margin"
  13. android:layout_marginBottom="@dimen/title_frame_margin"
  14. android:layout_marginLeft="@dimen/dialog_frame_margin"
  15. android:layout_marginRight="@dimen/dialog_frame_margin">
  16. <TextView
  17. android:id="@+id/title"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:layout_marginBottom="@dimen/title_frame_margin"
  21. android:textSize="@dimen/title_textsize"
  22. tools:text="Title"
  23. android:lineSpacingMultiplier="1.2" />
  24. <TextView
  25. android:id="@+id/content"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:textSize="@dimen/content_textsize"
  29. tools:text="Content" />
  30. </LinearLayout>
  31. <LinearLayout
  32. android:id="@+id/customViewScrollParent"
  33. android:layout_width="fill_parent"
  34. android:layout_height="0dp"
  35. android:layout_weight="1"
  36. android:visibility="gone">
  37. <com.afollestad.materialdialogs.views.MeasureCallbackScrollView
  38. android:id="@+id/customViewScroll"
  39. android:layout_width="match_parent"
  40. android:layout_height="wrap_content">
  41. <LinearLayout
  42. android:id="@+id/customViewFrame"
  43. android:orientation="vertical"
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:paddingTop="@dimen/dialog_frame_margin"
  47. android:paddingBottom="@dimen/dialog_frame_margin"
  48. android:layout_marginLeft="@dimen/dialog_frame_margin"
  49. android:layout_marginRight="@dimen/dialog_frame_margin">
  50. <TextView
  51. android:id="@+id/titleCustomView"
  52. android:layout_width="match_parent"
  53. android:layout_height="wrap_content"
  54. android:layout_marginBottom="@dimen/title_frame_margin"
  55. android:textSize="@dimen/title_textsize"
  56. tools:text="Title" />
  57. </LinearLayout>
  58. </com.afollestad.materialdialogs.views.MeasureCallbackScrollView>
  59. </LinearLayout>
  60. <View
  61. android:id="@+id/customViewDivider"
  62. android:layout_width="match_parent"
  63. android:layout_height="1dp"
  64. android:visibility="gone" />
  65. <RelativeLayout
  66. android:id="@+id/buttonDefaultFrame"
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content"
  69. android:layout_marginRight="@dimen/button_padding_frame_side"
  70. android:layout_marginBottom="@dimen/button_padding_frame_bottom">
  71. <TextView
  72. android:id="@+id/buttonDefaultNeutral"
  73. style="@style/ActionButton"
  74. android:layout_alignParentLeft="true"
  75. android:layout_marginLeft="@dimen/neutral_button_margin" />
  76. <TextView
  77. android:id="@+id/buttonDefaultNegative"
  78. style="@style/ActionButton"
  79. android:layout_toLeftOf="@+id/buttonDefaultPositive" />
  80. <TextView
  81. android:id="@+id/buttonDefaultPositive"
  82. style="@style/ActionButton"
  83. android:layout_alignParentRight="true" />
  84. </RelativeLayout>
  85. <LinearLayout
  86. android:id="@+id/buttonStackedFrame"
  87. android:orientation="vertical"
  88. android:layout_width="match_parent"
  89. android:layout_height="wrap_content"
  90. android:layout_marginBottom="@dimen/button_padding_frame_bottom">
  91. <TextView
  92. android:id="@+id/buttonStackedPositive"
  93. style="@style/ActionButtonStacked" />
  94. <TextView
  95. android:id="@+id/buttonStackedNegative"
  96. style="@style/ActionButtonStacked" />
  97. <TextView
  98. android:id="@+id/buttonStackedNeutral"
  99. style="@style/ActionButtonStacked" />
  100. </LinearLayout>
  101. </LinearLayout>