skydoves / PowerSpinner

🌀 A lightweight dropdown popup spinner, fully customizable with an arrow and animations for Android.
Apache License 2.0
1.2k stars 114 forks source link

i have this problem when i try to add it com.google.android.material.textview.MaterialTextView cannot be cast to com.skydoves.powerspinner.PowerSpinnerView #166

Open IZLAm90 opened 10 months ago

IZLAm90 commented 10 months ago

Please complete the following information:

Describe the Bug:

Add a clear description about the problem.

Expected Behavior:

A clear description of what you expected to happen.

skydoves commented 9 months ago

Hey @IZLAm90, would you share your XML file? PowerSpinner is not related to the material components. Make sure if you're getting the PowerSpinnerView using MaterialTextView. For example, if you try to get it wrong type you can face this issue, such as val spinnerView: MaterialTextView = findViewById(R.id. MaterialTextView)

AzizFasihHazel commented 4 months ago

@skydoves am accessing it using view binding but in production for some users am getting " Error inflating class com.skydoves.powerspinner.PowerSpinnerView (Caused by android.content.res.Resources$NotFoundException: Drawable packagename:drawable/powerspinner_arrow) ". PLease explain this issue why am getting this error for some users. What thing is casuing this issue