material-components-android: [Slider] UnsupportedOperationException
Description: Just add a simple slider in layout xml like this:
<com.google.android.material.slider.Slider android:layout_width="match_parent" android:layout_height="wrap_content"/>
Android API version: 27
**Material Library version:**1.3.0-alpha01
Device: Redmi note 4x
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (4 by maintainers)
@NVThai151097, @cdut007 I had the same problem and what I did miss was 4. Change your app theme to inherit from a Material Components theme I had a AppTheme that was not part of Theme.MaterialComponents.xyz
Changing that fixed it for me. Hope that helps you too!
Post the full stacktrace please
I face the same issue with
Theme.MaterialComponents.Light.NoActionBar.Bridge