Open inimirpaz opened 1 month ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Can repro this issue on Android platform on the latest 17.10 preview 7(8.0.3&8.0.21&8.0.40).
@RoiChen001 Did you got any solution to resolve the issue?
@jfversluis can you please help us check this?
I had exactly the same problem. For now I am using default MAUI SearchBar component. Seems fine on Android, haven't tested iOS yet.
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