I have an .NET MAUI project. I made a login page and I tried to login I take:
Java.Lang.IllegalArgumentException: 'No view found for id 0x7f080147 (com.companyname.sportakip:id/navigationlayout_toptabs) for fragment ViewFragment{8c14672} (fad55514-6fd6-44c4-b996-91651de58922 id=0x7f080147)'
error.
I tried to add a fragment that navigationlayout_toptabs have ID in navigationlayout.xml
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/navigation_layout"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/navigationlayout_appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<androidx.fragment.app.FragmentContainerView
android:id="@+id/navigationlayout_toptabs"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.google.android.material.appbar.AppBarLayout>
<androidx.fragment.app.FragmentContainerView
android:id="@+id/navigationlayout_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<androidx.fragment.app.FragmentContainerView
android:id="@+id/navigationlayout_bottomtabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
But it doesn’t work.
New contributor
Mehmet Çalıştırır is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.