78 lines
3.1 KiB
XML
78 lines
3.1 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:id="@+id/bookmark_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="16dp"
|
|
android:background="?android:attr/selectableItemBackground">
|
|
|
|
<ImageView
|
|
android:id="@+id/bookmark_favicon"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/favicon_background"
|
|
android:importantForAccessibility="no"
|
|
android:padding="10dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
android:foregroundTint="?primaryText"
|
|
tools:src="@drawable/ic_folder_icon" />
|
|
|
|
<TextView
|
|
android:id="@+id/bookmark_title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:ellipsize="end"
|
|
android:lines="1"
|
|
android:textSize="16sp"
|
|
android:textColor="?secondaryText"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/bookmark_overflow"
|
|
app:layout_constraintHorizontal_bias="0"
|
|
app:layout_constraintStart_toEndOf="@id/bookmark_favicon"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="Internet" />
|
|
|
|
<ImageView
|
|
android:id="@+id/bookmark_overflow"
|
|
android:layout_width="24dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="10dp"
|
|
android:contentDescription="@string/bookmark_menu_content_description"
|
|
android:src="@drawable/ic_menu"
|
|
android:tint="?primaryText"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<View
|
|
android:id="@+id/bookmark_separator"
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
android:layout_marginStart="68dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:importantForAccessibility="no"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/bookmark_overflow"
|
|
android:background="?neutral"
|
|
android:visibility="gone"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|