PowerSpinner icon indicating copy to clipboard operation
PowerSpinner copied to clipboard

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

Open IZLAm90 opened this issue 1 year ago • 2 comments

Please complete the following information:

  • Library Version [e.g. v1.0.0]
  • Affected Device(s) [e.g. Samsung Galaxy s10 with Android 9.0]

Describe the Bug:

Add a clear description about the problem.

Expected Behavior:

A clear description of what you expected to happen.

IZLAm90 avatar Nov 01 '23 19:11 IZLAm90

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)

skydoves avatar Nov 26 '23 01:11 skydoves

@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

AzizFasihHazel avatar May 07 '24 12:05 AzizFasihHazel