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
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/browser_overlay_background"
android:orientation="vertical"
tools:ignore="Overdraw">
<!-- This background color is necessary otherwise the browser shows through -->
<LinearLayout
android:id="@+id/bannerLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#2A2A2E"
android:gravity="center"
android:orientation="horizontal">
<ImageView
android:contentDescription="@null"
android:layout_width="80sp"
android:layout_height="64sp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:src="@drawable/warning"/>
<TextView
android:id="@+id/bannerTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:fontFamily="@string/font_ember_regular"
android:textSize="18sp"
android:lineSpacingExtra="6sp"
android:paddingTop="16dp"
android:paddingBottom="16dp"
android:text="@string/banner_text"
android:textColor="#FBFBFE" />
<Button
android:id="@+id/bannerMoreInfoButton"
style="@style/BannerConfirmButton"
android:layout_width="wrap_content"
android:layout_height="36dp"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_weight="0"
android:nextFocusDown="@+id/exitButton"
android:text="@string/banner_more_info_button"
android:textSize="18sp"
android:fontFamily="@string/font_ember_regular" />
</LinearLayout>
<org.mozilla.tv.firefox.navigationoverlay.BrowserNavigationOverlayScrollView
android:id="@+id/overlayScrollView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:fillViewport="true"
android:focusable="false"
android:scrollbars="none">
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="27dp"
android:layout_marginBottom="27dp"
android:descendantFocusability="afterDescendants"
android:orientation="vertical">
<LinearLayout
android:id="@+id/topNavContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/overlay_margin_start"
android:layout_marginEnd="@dimen/overlay_margin_end"
android:layout_marginBottom="24dp"
android:descendantFocusability="afterDescendants"
android:focusable="true"
android:gravity="center_vertical"
android:orientation="horizontal">
<include layout="@layout/fragment_navigation_overlay_top_nav" />
</LinearLayout>
<!-- An explicit nextFocusUp seems necessary to make up work consistently.
Drawable tinted in code (XML needs API 23+).
android:importantForAutofill (XML needs API 26+) requires tools:ignore="UnusedAttribute" for lint check -->
<org.mozilla.tv.firefox.widget.InlineAutocompleteEditText
android:id="@+id/navUrlInput"
android:layout_width="498dp"
android:layout_height="@dimen/urlbar_height"
android:layout_marginStart="@dimen/overlay_margin_start"
android:layout_marginEnd="@dimen/overlay_margin_end"
android:background="@drawable/nav_urlbar_background"
android:cursorVisible="false"
android:drawableStart="@drawable/mozac_ic_search"
android:drawablePadding="10dp"
android:fontFamily="@string/font_ember_regular"
android:hint="@string/urlbar_hint"
android:imeOptions="actionGo|flagNoExtractUi|flagNoFullscreen"
android:importantForAutofill="no"
android:inputType="textUri"
android:lines="1"
android:nextFocusLeft="@+id/navUrlInput"
android:nextFocusRight="@id/navUrlInput"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:textColor="@color/photonGrey10"
android:textColorHint="@color/photonGrey10_a80p"
android:textIsSelectable="false"
tools:ignore="UnusedAttribute">
<requestFocus />
</org.mozilla.tv.firefox.widget.InlineAutocompleteEditText>
<LinearLayout
android:id="@+id/channelsContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
/>
<TextView
style="@style/TextAppearance.AppCompat.Medium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/overlay_margin_start"
android:layout_marginEnd="@dimen/overlay_margin_end"
android:layout_marginTop="24dp"
android:layout_marginBottom="16dp"
android:fontFamily="@string/font_ember_regular"
android:textSize="24sp"
android:text="@string/menu_settings" />
<androidx.leanback.widget.ListRowView
android:id="@+id/settingsTileContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/overlay_margin_channel_start"
android:layout_marginEnd="@dimen/overlay_margin_end" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</org.mozilla.tv.firefox.navigationoverlay.BrowserNavigationOverlayScrollView>
<include layout="@layout/hint_bar" />
</LinearLayout>