Revision control

Copy as Markdown

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/suggestion_background_color"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_marginTop="2dp"
android:layout_marginEnd="35dp"
android:layout_marginBottom="2dp"
android:descendantFocusability="blocksDescendants"
android:duplicateParentState="true">
<ImageView
android:id="@+id/favicon"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:layout_gravity="center_vertical"
android:layout_marginEnd="10dp"
android:tint="@drawable/suggestion_icon_color"
app:srcCompat="@drawable/ff_logo"
android:duplicateParentState="true"/>
<LinearLayout
android:id="@+id/texts"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="false"
android:layout_centerHorizontal="false"
android:layout_centerVertical="true"
android:layout_gravity="center_vertical"
android:layout_alignParentEnd="true"
android:layout_toEndOf="@+id/favicon"
android:gravity="start|center_vertical"
android:orientation="vertical"
android:duplicateParentState="true">
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:scrollHorizontally="true"
android:singleLine="true"
android:textColor="@drawable/suggestion_text_color"
android:textSize="@dimen/text_medium_size"
tools:text="a history/favorites/suggestions item"
android:duplicateParentState="true"/>
<TextView
android:id="@+id/url"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:scrollHorizontally="true"
android:singleLine="true"
android:textColor="@drawable/suggestion_description_color"
android:textSize="@dimen/text_smaller_size"
android:visibility="visible"
tools:text="item URL"
android:duplicateParentState="true"/>
</LinearLayout>
</RelativeLayout>
<LinearLayout
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_marginStart="15dp"
android:layout_marginTop="2dp"
android:layout_marginEnd="35dp"
android:background="@drawable/separator_background"
android:orientation="horizontal" />
</LinearLayout>