abc_alert_dialog_material.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2015 The Android Open Source Project
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  15. android:id="@+id/parentPanel"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:orientation="vertical">
  19. <LinearLayout
  20. android:id="@+id/topPanel"
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:orientation="vertical">
  24. <LinearLayout
  25. android:id="@+id/title_template"
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:orientation="horizontal"
  29. android:gravity="center_vertical"
  30. android:paddingLeft="?attr/dialogPreferredPadding"
  31. android:paddingRight="?attr/dialogPreferredPadding"
  32. android:paddingTop="@dimen/abc_dialog_padding_top_material">
  33. <ImageView
  34. android:id="@android:id/icon"
  35. android:layout_width="32dip"
  36. android:layout_height="32dip"
  37. android:scaleType="fitCenter"
  38. android:src="@null"
  39. style="@style/RtlOverlay.Widget.AppCompat.DialogTitle.Icon"/>
  40. <android.support.v7.widget.DialogTitle
  41. android:id="@+id/alertTitle"
  42. style="?attr/android:windowTitleStyle"
  43. android:singleLine="true"
  44. android:ellipsize="end"
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. android:textAlignment="viewStart" />
  48. </LinearLayout>
  49. <!-- If the client uses a customTitle, it will be added here. -->
  50. </LinearLayout>
  51. <FrameLayout
  52. android:id="@+id/contentPanel"
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:layout_weight="1"
  56. android:minHeight="48dp">
  57. <View android:id="@+id/scrollIndicatorUp"
  58. android:visibility="gone"
  59. android:layout_width="match_parent"
  60. android:layout_height="1dp"
  61. android:layout_gravity="top"
  62. android:background="?attr/colorControlHighlight"/>
  63. <android.support.v4.widget.NestedScrollView
  64. android:id="@+id/scrollView"
  65. android:layout_width="match_parent"
  66. android:layout_height="wrap_content"
  67. android:clipToPadding="false">
  68. <LinearLayout
  69. android:layout_width="match_parent"
  70. android:layout_height="wrap_content"
  71. android:orientation="vertical">
  72. <TextView
  73. android:id="@android:id/message"
  74. style="@style/TextAppearance.AppCompat.Subhead"
  75. android:layout_width="match_parent"
  76. android:layout_height="wrap_content"
  77. android:paddingLeft="?attr/dialogPreferredPadding"
  78. android:paddingTop="@dimen/abc_dialog_padding_top_material"
  79. android:paddingRight="?attr/dialogPreferredPadding"/>
  80. <View
  81. android:id="@+id/textSpacerNoButtons"
  82. android:visibility="gone"
  83. android:layout_width="0dp"
  84. android:layout_height="@dimen/abc_dialog_padding_top_material"/>
  85. </LinearLayout>
  86. </android.support.v4.widget.NestedScrollView>
  87. <View android:id="@+id/scrollIndicatorDown"
  88. android:visibility="gone"
  89. android:layout_width="match_parent"
  90. android:layout_height="1dp"
  91. android:layout_gravity="bottom"
  92. android:background="?attr/colorControlHighlight"/>
  93. </FrameLayout>
  94. <FrameLayout
  95. android:id="@+id/customPanel"
  96. android:layout_width="match_parent"
  97. android:layout_height="wrap_content"
  98. android:layout_weight="1"
  99. android:minHeight="48dp">
  100. <FrameLayout
  101. android:id="@+id/custom"
  102. android:layout_width="match_parent"
  103. android:layout_height="wrap_content"/>
  104. </FrameLayout>
  105. <include layout="@layout/abc_alert_dialog_button_bar_material" />
  106. </LinearLayout><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/layout/abc_alert_dialog_material.xml -->