mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-11 13:11:01 +00:00
5e9b753acb
Improve performance of HomeActivity.onCreate by delaying this inflation. We use a ViewStub and inflate the first time the actionbar is accessed.
28 lines
1.1 KiB
XML
28 lines
1.1 KiB
XML
<!-- 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"
|
|
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"
|
|
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" />
|
|
|
|
<fragment
|
|
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" />
|
|
</LinearLayout>
|