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