70 lines
3.3 KiB
XML
70 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:minHeight="?android:attr/listPreferredItemHeight">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/favicon_wrapper"
|
|
android:layout_width="@dimen/history_favicon_width_height"
|
|
android:layout_height="@dimen/history_favicon_width_height"
|
|
android:padding="@dimen/saved_logins_item_padding"
|
|
android:layout_marginStart="@dimen/saved_logins_item_margin_start"
|
|
android:background="@drawable/top_sites_background"
|
|
android:layout_gravity="center"
|
|
android:importantForAccessibility="noHideDescendants"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
<ImageView
|
|
android:id="@+id/favicon_image"
|
|
android:layout_width="@dimen/preference_icon_drawable_size"
|
|
android:layout_height="@dimen/preference_icon_drawable_size"
|
|
android:layout_gravity="center"
|
|
android:adjustViewBounds="true"
|
|
android:importantForAccessibility="no"
|
|
android:scaleType="fitCenter" />
|
|
</FrameLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/webAddressView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/saved_logins_item_margin_start"
|
|
android:layout_marginEnd="@dimen/saved_logins_item_margin_end"
|
|
android:ellipsize="middle"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceListItem"
|
|
android:textColor="?primaryText"
|
|
app:layout_constraintBottom_toTopOf="@id/usernameView"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/favicon_wrapper"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
tools:text="mozilla.org" />
|
|
|
|
<TextView
|
|
android:id="@+id/usernameView"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/saved_logins_item_margin_start"
|
|
android:layout_marginEnd="@dimen/saved_logins_item_margin_end"
|
|
android:ellipsize="middle"
|
|
android:singleLine="true"
|
|
android:textColor="?secondaryText"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/favicon_wrapper"
|
|
app:layout_constraintTop_toBottomOf="@id/webAddressView"
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
tools:text="mozilla.org" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|