activity_home.xml (2104B)
1 <!-- This Source Code Form is subject to the terms of the Mozilla Public 2 - License, v. 2.0. If a copy of the MPL was not distributed with this 3 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 4 5 <!-- DO NOT INCLUDE ANYTHING ELSE INSIDE THIS FRAME LAYOUT --> 6 <!-- This FrameLayout is solely to allow `debugOverlay` to be presented globally in Fenix. --> 7 <!-- This is not to be used outside of the scope of the debug overlay and the Debug Drawer feature. --> 8 <!-- PERFORMANCE NOTE: Anything outside of `HomeActivityRootLinearLayout` will not be measured for performance. --> 9 <FrameLayout 10 xmlns:android="http://schemas.android.com/apk/res/android" 11 xmlns:app="http://schemas.android.com/apk/res-auto" 12 xmlns:tools="http://schemas.android.com/tools" 13 android:layout_width="match_parent" 14 android:layout_height="match_parent"> 15 16 <org.mozilla.fenix.perf.HomeActivityRootLinearLayout 17 android:layout_width="match_parent" 18 android:layout_height="match_parent" 19 android:orientation="vertical" 20 android:id="@+id/rootContainer" 21 tools:context=".HomeActivity"> 22 23 <ViewStub 24 android:id="@+id/navigationToolbarStub" 25 android:inflatedId="@id/navigationToolbar" 26 android:layout="@layout/navigation_toolbar" 27 android:layout_width="match_parent" 28 android:layout_height="56dp" /> 29 30 <!--The navGraph is set dynamically in NavGraphProvider --> 31 <androidx.fragment.app.FragmentContainerView 32 android:id="@+id/container" 33 android:name="androidx.navigation.fragment.NavHostFragment" 34 android:layout_width="match_parent" 35 android:layout_height="match_parent" 36 app:defaultNavHost="true" 37 app:navGraph="@navigation/nav_graph" /> 38 39 </org.mozilla.fenix.perf.HomeActivityRootLinearLayout> 40 41 <androidx.compose.ui.platform.ComposeView 42 android:id="@+id/debugOverlay" 43 android:layout_width="match_parent" 44 android:layout_height="match_parent" 45 android:visibility="gone" /> 46 47 </FrameLayout>