TabbedPage inside a ShellContent fails on Android with Java.Lang.IllegalArgumentException #3741
Labels
area-controls-shell
Shell Navigation, Routes, Tabs, Flyout
platform/android 🤖
t/bug
Something isn't working
Description
So I am trying to use a TabbedPage inside a ShellContent. On Windows all works, but on Android you get an exception when the app loads, or you navigate to the tabbed page.
The code is simple:
This is inside App.xaml
The
local:TabbedPageExample
is just a TabbedPage with two empty ContentPage inside theTabbedPage.Children
. You can see the code in the github I linked at the end.Windows WinUI example:
![image](https://user-images.githubusercontent.com/20151415/145706066-58cc5f3e-5adc-49cd-bbbb-7e4a70b6198b.png)
On Android it just fails with the exception:
Java.Lang.IllegalArgumentException
Message=No view found for id 0x7f08013d (com.companyname.TabbedPageBugDemo:id/navigationlayout_toptabs) for fragment ViewFragment{7e5f7b2} (bec44d9c-f254-4734-854a-1a8f9615c311 id=0x7f08013d)
I have created a minimal version to showcase the bug. You can find it here: https://github.com/StockDrops/TabbedPageBugDemo
Thank you!
Steps to Reproduce
Version with bug
Preview 10 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
API 30, Android 11
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: