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
<!-- We add negative margins on the parent view to undo the effects of `marginBottom`: see the
code for details. -->
<org.mozilla.tv.firefox.FocusLossFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/home_tile"
android:orientation="vertical"
android:layout_width="@dimen/home_tile_width"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:focusable="true"
android:layout_marginEnd="12dp"
android:clipChildren="false">
<LinearLayout
android:layout_width="@dimen/home_tile_width"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- Focus selector is set in ChannelLayoutManager -->
<androidx.cardview.widget.CardView
android:id="@+id/channel_cardview"
android:layout_width="match_parent"
android:layout_height="@dimen/home_tile_height"
app:cardCornerRadius="4dp">
<ImageView
android:id="@+id/tile_icon"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="ContentDescription"
tools:src="@drawable/tile_sports_formula_1" />
</androidx.cardview.widget.CardView>
<TextView
android:id="@+id/tile_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="start"
android:fontFamily="@string/font_ember_regular"
android:gravity="center_horizontal"
android:paddingTop="8dp"
android:textColor="@color/photonGrey10_a80p"
android:textSize="18sp"
tools:text="YouTube" />
</LinearLayout>
</org.mozilla.tv.firefox.FocusLossFrameLayout>