blob: 3f143566f221d83aacb296b4ddefbeb1a3d2ac39 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2018 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/autofill_assistant"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="invisible"
android:gravity="bottom">
<org.chromium.chrome.browser.autofill_assistant.ui.TouchEventFilter
android:id="@+id/touch_event_filter"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:clickable="true"
android:visibility="visible"
android:focusable="false"
android:orientation="vertical"/>
<LinearLayout
android:id="@+id/bottombar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@drawable/autofill_assistant_bottombar_bg"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="56dp"
android:layout_marginTop="16dp"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"
android:orientation="horizontal"
android:gravity="center_vertical">
<org.chromium.ui.widget.ChromeImageView
android:layout_width="24dp"
android:layout_height="24dp"
app:srcCompat="@drawable/ic_autofill_assistant_24dp" />
<TextView
android:id="@+id/status_message"
android:layout_width="0dp"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:paddingStart="24dp"
android:paddingEnd="24dp"
android:textAppearance="@style/BlackTitle2"
android:layout_weight="1.0"
android:maxLines="2"
android:ellipsize="end"/>
<ImageButton
android:id="@+id/feedback_button"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginEnd="12dp"
android:src="@drawable/ic_bug_report_24dp"
android:tint="@color/light_icon_color"
android:background="?attr/selectableItemBackground"
android:contentDescription="@string/menu_send_feedback" />
<ImageButton
android:id="@+id/close_button"
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@drawable/btn_delete_24dp"
android:tint="@color/light_icon_color"
android:background="?attr/selectableItemBackground"
android:contentDescription="@string/close" />
</LinearLayout>
<org.chromium.chrome.browser.widget.MaterialProgressBar
android:id="@+id/progress_bar"
android:layout_width="match_parent"
android:layout_height="6dp"
app:colorBackground="@color/modern_grey_100"
app:colorProgress="@color/modern_blue_600" />
<LinearLayout
android:id="@+id/details"
android:layout_width="match_parent"
android:layout_height="64dp"
android:background="@drawable/autofill_assistant_details_bg"
android:padding="8dp"
android:visibility="gone"
android:orientation="horizontal">
<org.chromium.ui.widget.ChromeImageView
android:id="@+id/details_image"
android:layout_width="@dimen/autofill_assistant_details_image_size"
android:layout_height="@dimen/autofill_assistant_details_image_size"
android:layout_marginEnd="16dp"
android:scaleType="centerCrop"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/details_title"
android:layout_width="wrap_content"
android:minWidth="184dp"
android:layout_height="16dp"
android:layout_marginBottom="2dp"
android:layout_marginTop="7dp"
android:gravity="bottom"
android:textAppearance="@style/BlackCaptionDefault"
android:textStyle="bold"
android:maxLines="1"
android:ellipsize="end"/>
<TextView
android:id="@+id/details_text"
android:layout_width="match_parent"
android:layout_height="16dp"
android:gravity="top"
android:textAppearance="@style/BlackCaption"
android:maxLines="1"
android:ellipsize="end"/>
</LinearLayout>
</LinearLayout>
<HorizontalScrollView
android:id="@+id/carousel_scroll"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollbars="none">
<LinearLayout
android:id="@+id/carousel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="16dp"
android:paddingStart="24dp"
android:paddingEnd="24dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:visibility="gone">
</LinearLayout>
</HorizontalScrollView>
</LinearLayout>
</FrameLayout>