Android.Views.InflateException when trying to migrate a SearchBar custom renderer #22522
Labels
area-controls-searchbar
SearchBar control
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
By registering a compatibility renderer via AddCompatibilityRenderer (UseMauiCompatibility is being called) for a SearchBar component, the following exception crashes the app:
Android.Views.InflateException: Binary XML file line #93 in com.companyname.toolbaritembindingissue:layout/abc_search_view: Binary XML file line #93 in com.companyname.toolbaritembindingissue:layout/abc_search_view: Error inflating class
Steps to Reproduce
No response
Link to public reproduction project repository
https://github.com/inimirpaz/maui_issues/tree/searchview_issue
Version with bug
8.0.40 SR5
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: