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
|
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2019 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<!-- A toolbar layout designed for bottom-sheet based components -->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="4dp" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="62dp"
android:paddingStart="16dp"
android:paddingEnd="16dp">
<org.chromium.ui.widget.ChromeImageView
android:id="@+id/favicon"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_centerVertical="true"
android:layout_marginEnd="16dp"
android:layout_marginBottom="14dp"
android:scaleType="fitCenter"
android:importantForAccessibility="no" />
<ImageView
android:id="@+id/drag_handlebar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|top"
android:layout_marginTop="4dp"
android:layout_centerHorizontal="true"
android:importantForAccessibility="no"
android:src="@drawable/drag_handlebar" />
<org.chromium.ui.widget.ChromeImageView
android:id="@+id/close"
android:layout_width="48dp"
android:layout_height="48dp"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:paddingStart="12dp"
android:paddingEnd="12dp"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginBottom="2dp"
android:src="@drawable/btn_close"
android:contentDescription="@string/close"
app:tint="@macro/default_icon_color" />
<org.chromium.ui.widget.ChromeImageView
android:id="@+id/open_in_new_tab"
android:layout_width="48dp"
android:layout_height="48dp"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:paddingStart="12dp"
android:paddingEnd="12dp"
android:layout_toStartOf="@+id/close"
android:layout_centerVertical="true"
android:layout_marginBottom="2dp"
android:src="@drawable/open_in_new_tab"
android:contentDescription="@string/contextmenu_open_in_new_tab"
android:visibility="gone"
app:tint="@macro/default_icon_color" />
<RelativeLayout
android:id="@+id/page_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toStartOf="@id/open_in_new_tab"
android:layout_toEndOf="@id/favicon"
android:layout_centerVertical="true">
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:textAlignment="viewStart"
android:ellipsize="end"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.TextMedium.Primary" />
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignStart="@id/title"
android:layout_below="@id/title">
<org.chromium.ui.widget.ChromeImageView
android:id="@+id/security_icon"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:minHeight="16dp"
android:layout_marginTop="2dp"
android:layout_marginBottom="2dp"
android:importantForAccessibility="no"
app:tint="@macro/default_icon_color" />
<TextView
android:id="@+id/origin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:textAlignment="viewStart"
android:ellipsize="start"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.TextMedium.Secondary" />
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
<View
android:layout_width="match_parent"
android:layout_height="2dp" />
<ProgressBar
android:id="@+id/progress_bar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="2dp"
android:max="100" />
<org.chromium.components.browser_ui.widget.FadingShadowView
android:id="@+id/shadow"
android:layout_width="match_parent"
android:layout_height="@dimen/action_bar_shadow_height"/>
</LinearLayout>
|