I have a working app, with a overlay activity, that is load using a LayoutInflater.
When adding a material view to that activity (com.google.android.material.slider.Slider), the LayoutInflater returns a InflateException
android.view.InflateException:
Binary XML file line #24 in com.xxx.xxx:layout/overlay:
Error inflating class com.google.android.material.slider.Slider
Of course the XML in question is not Binary, and in the line in question there is the material Slider view.
When adding the material Slider view to a standard activity, it works as expected.
My question is:
Is that a limitation of the of the LayoutInflater, and is it not possible to use the Slider view, or this issue might be solved?
Following some posts I read, I changed my app style to include parent=”Theme.MaterialComponents.DayNight.NoActionBar.Bridge”
No affect.
Cheers.