tiper / MaterialSpinner

Implementation of a Material Spinner for Android with TextInputLayout functionalities
Apache License 2.0
130 stars 30 forks source link

Not working with Androidx #1

Closed petr-stety-stetka closed 5 years ago

petr-stety-stetka commented 5 years ago

With use androidx libraries spinner not working properly. Can you fix it?

implementation 'androidx.appcompat:appcompat:1.0.2'

tiper commented 5 years ago

Hi @petr-stety-stetka, to use with AndroidX please ensure you have android.useAndroidX=true and android.enableJetifier=true on your gradle.properties and that your app theme extends a material component theme like Theme.MaterialComponents.Light.DarkActionBar.

If possible please also check if you are using com.google.android.material:material:1.0.0.

Cheers

tiper commented 5 years ago

In case you're using the material:1.1.0-alphaXX versions I've made changes to support them. Just update to version 1.0.1 and let me know if you still have issues.

rajvimal commented 4 years ago

Please help me to resolve this

    com.tiper.MaterialSpinner materialSpinner = new com.tiper.MaterialSpinner(new androidx.appcompat.view.ContextThemeWrapper(this, R.style.Widget_MaterialComponents_TextInputLayout_OutlinedBox));

implementation 'com.google.android.material:material:1.2.0-alpha05'
implementation 'androidx.appcompat:appcompat:1.0.2'
tiper commented 4 years ago

Hi @rajvimal please refer to #27