md_dialog.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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/md_dialog_frame_margin"
  13. android:layout_marginBottom="@dimen/md_main_frame_margin"
  14. android:layout_marginLeft="@dimen/md_dialog_frame_margin"
  15. android:layout_marginRight="@dimen/md_dialog_frame_margin"
  16. android:layout_weight="1">
  17. <LinearLayout
  18. android:id="@+id/titleFrame"
  19. android:orientation="horizontal"
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. android:gravity="center_vertical"
  23. android:layout_marginBottom="@dimen/md_main_frame_margin">
  24. <ImageView
  25. android:id="@+id/icon"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:scaleType="fitXY"
  29. android:layout_marginRight="@dimen/md_icon_margin" />
  30. <TextView
  31. android:id="@+id/title"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:textSize="@dimen/md_title_textsize"
  35. tools:text="Title" />
  36. </LinearLayout>
  37. <com.afollestad.materialdialogs.views.MeasureCallbackScrollView
  38. android:id="@+id/contentScrollView"
  39. android:layout_width="match_parent"
  40. android:layout_height="wrap_content"
  41. android:clipToPadding="false">
  42. <TextView
  43. android:id="@+id/content"
  44. android:layout_width="wrap_content"
  45. android:layout_height="wrap_content"
  46. android:textSize="@dimen/md_content_textsize"
  47. tools:text="Content" />
  48. </com.afollestad.materialdialogs.views.MeasureCallbackScrollView>
  49. </LinearLayout>
  50. <LinearLayout
  51. android:orientation="vertical"
  52. android:id="@+id/customViewScrollParent"
  53. android:layout_width="match_parent"
  54. android:layout_height="0dp"
  55. android:layout_weight="1"
  56. android:visibility="gone">
  57. <com.afollestad.materialdialogs.views.MeasureCallbackScrollView
  58. android:id="@+id/customViewScroll"
  59. android:layout_width="match_parent"
  60. android:layout_height="wrap_content"
  61. android:clipToPadding="false">
  62. <LinearLayout
  63. android:id="@+id/customViewFrame"
  64. android:orientation="vertical"
  65. android:layout_width="match_parent"
  66. android:layout_height="wrap_content"
  67. android:paddingTop="@dimen/md_dialog_frame_margin"
  68. android:paddingBottom="@dimen/md_dialog_frame_margin"
  69. android:layout_marginLeft="@dimen/md_dialog_frame_margin"
  70. android:layout_marginRight="@dimen/md_dialog_frame_margin">
  71. <LinearLayout
  72. android:id="@+id/titleFrameCustomView"
  73. android:orientation="horizontal"
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. android:gravity="center_vertical"
  77. android:layout_marginBottom="@dimen/md_main_frame_margin">
  78. <ImageView
  79. android:id="@+id/iconCustomView"
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:scaleType="fitXY"
  83. android:layout_marginRight="@dimen/md_icon_margin" />
  84. <TextView
  85. android:id="@+id/titleCustomView"
  86. android:layout_width="match_parent"
  87. android:layout_height="wrap_content"
  88. android:textSize="@dimen/md_title_textsize"
  89. tools:text="Title" />
  90. </LinearLayout>
  91. </LinearLayout>
  92. </com.afollestad.materialdialogs.views.MeasureCallbackScrollView>
  93. <LinearLayout
  94. android:id="@+id/list_view_container"
  95. android:layout_width="match_parent"
  96. android:layout_height="wrap_content"
  97. android:orientation="vertical"
  98. android:visibility="gone">
  99. <com.afollestad.materialdialogs.views.MeasureCallbackListView
  100. android:id="@+id/contentListView"
  101. android:layout_width="match_parent"
  102. android:layout_height="wrap_content"
  103. android:paddingBottom="@dimen/md_main_frame_margin"
  104. android:scrollbarStyle="outsideOverlay"
  105. android:clipToPadding="false"
  106. android:divider="@null"
  107. android:dividerHeight="0dp" />
  108. </LinearLayout>
  109. </LinearLayout>
  110. <View
  111. android:id="@+id/customViewDivider"
  112. android:layout_width="match_parent"
  113. android:layout_height="1dp"
  114. android:visibility="gone" />
  115. <RelativeLayout
  116. android:id="@+id/buttonDefaultFrame"
  117. android:layout_width="match_parent"
  118. android:layout_height="wrap_content"
  119. android:layout_marginRight="@dimen/md_button_padding_frame_side"
  120. android:layout_marginBottom="@dimen/md_button_padding_frame_bottom">
  121. <TextView
  122. android:id="@+id/buttonDefaultNeutral"
  123. style="@style/MD_ActionButton"
  124. android:layout_alignParentLeft="true"
  125. android:layout_marginLeft="@dimen/md_neutral_button_margin" />
  126. <!-- toLeftOf rule added from invalidateActions() -->
  127. <TextView
  128. android:id="@+id/buttonDefaultNegative"
  129. style="@style/MD_ActionButton" />
  130. <TextView
  131. android:id="@+id/buttonDefaultPositive"
  132. style="@style/MD_ActionButton"
  133. android:layout_alignParentRight="true" />
  134. </RelativeLayout>
  135. <LinearLayout
  136. android:id="@+id/buttonStackedFrame"
  137. android:orientation="vertical"
  138. android:layout_width="match_parent"
  139. android:layout_height="wrap_content"
  140. android:layout_marginBottom="@dimen/md_button_padding_frame_bottom">
  141. <TextView
  142. android:id="@+id/buttonStackedPositive"
  143. style="@style/MD_ActionButtonStacked" />
  144. <TextView
  145. android:id="@+id/buttonStackedNegative"
  146. style="@style/MD_ActionButtonStacked" />
  147. <TextView
  148. android:id="@+id/buttonStackedNeutral"
  149. style="@style/MD_ActionButtonStacked" />
  150. </LinearLayout>
  151. </LinearLayout>