1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
|
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2017 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<org.chromium.components.browser_ui.modaldialog.ModalDialogView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@id/modal_dialog_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:focusable="true"
android:focusableInTouchMode="true"
app:maxWidthLandscape="@dimen/modal_dialog_max_width_major"
app:maxWidthPortrait="@dimen/modal_dialog_max_width_minor"
app:maxHeight="@dimen/modal_dialog_max_height" >
<include layout="@layout/modal_dialog_title"
android:id="@+id/title_container" />
<org.chromium.components.browser_ui.widget.FadingEdgeScrollView
android:id="@+id/modal_dialog_title_scroll_view"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:fadeScrollbars="false">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<include layout="@layout/modal_dialog_title"
android:id="@+id/scrollable_title_container"
android:visibility="gone" />
<org.chromium.ui.widget.TextViewWithLeading
android:id="@+id/message_paragraph_1"
android:textAppearance="@style/TextAppearance.TextMedium.Secondary"
app:leading="20sp"
style="@style/AlertDialogContent" />
<org.chromium.ui.widget.TextViewWithLeading
android:id="@+id/message_paragraph_2"
android:textAppearance="@style/TextAppearance.TextMedium.Secondary"
android:visibility="gone"
android:layout_marginBottom="16dp"
app:leading="20sp"
style="@style/AlertDialogContent" />
</LinearLayout>
</org.chromium.components.browser_ui.widget.FadingEdgeScrollView>
<FrameLayout
android:id="@+id/custom_view_not_in_scrollable"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:visibility="gone" />
<org.chromium.components.browser_ui.widget.FadingEdgeScrollView
android:id="@+id/modal_dialog_scroll_view"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:visibility="gone"
android:fadeScrollbars="false">
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<FrameLayout android:id="@+id/custom_view_in_scrollable"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:visibility="gone" />
<LinearLayout
android:id="@+id/button_group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="16dp"
android:paddingLeft="24dp"
android:paddingRight="24dp"
android:paddingBottom="24dp"
android:visibility="gone"
android:orientation="vertical">
</LinearLayout>
</LinearLayout>
</org.chromium.components.browser_ui.widget.FadingEdgeScrollView>
<org.chromium.components.browser_ui.widget.DualControlLayout
android:id="@+id/button_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="?attr/dualControlLayoutVerticalPadding"
android:paddingBottom="?attr/dualControlLayoutVerticalPadding"
android:paddingStart="?attr/dualControlLayoutHorizontalPadding"
android:paddingEnd="?attr/dualControlLayoutHorizontalPadding"
app:stackedMargin="@dimen/button_bar_stacked_margin"
app:buttonAlignment="end">
<org.chromium.ui.widget.ButtonCompat
android:id="@+id/positive_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="?attr/buttonBarPositiveButtonStyle" />
<org.chromium.ui.widget.ButtonCompat
android:id="@+id/negative_button"
android:accessibilityTraversalAfter="@+id/positive_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="?attr/buttonBarNegativeButtonStyle" />
</org.chromium.components.browser_ui.widget.DualControlLayout>
<FrameLayout
android:id="@+id/custom_button_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone" />
<LinearLayout
android:id="@+id/footer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/modal_dialog_footer_top_margin"
android:visibility="gone">
<TextView
android:id="@+id/footer_message"
android:textAppearance="@style/TextAppearance.TextMedium.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="@dimen/modal_dialog_footer_horizontal_padding"
android:paddingVertical="@dimen/modal_dialog_footer_vertical_padding" />
</LinearLayout>
</org.chromium.components.browser_ui.modaldialog.ModalDialogView>
|