Revision control
Copy as Markdown
<?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
<!-- ignore=Overdraw: we're using a (most-of-the-time) transparent background for the touch-ripple
effect. That background is item specific (this layout is used as a RecyclerView item), so
we can't move the background up to the next layer, hence we need to ignore that lint warning. -->
tools:ignore="Overdraw"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="@drawable/background_install_banner"
android:focusable="true"
android:clickable="true"
android:paddingStart="16dp"
android:paddingEnd="16dp">
<ImageView
android:id="@+id/icon"
android:layout_width="24dp"
android:layout_height="24dp"
android:importantForAccessibility="no"
android:layout_gravity="center_vertical"/>
<TextView
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:layout_marginStart="32dp"
android:textColor="@android:color/white"
android:textSize="16sp"
android:lines="1"
android:text="@string/download_firefox"
android:ellipsize="end"
android:gravity="center_vertical" />
</LinearLayout>