Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Nov 1, 2023 · 2 comments

Comments

@IZLAm90
Copy link

IZLAm90 commented Nov 1, 2023

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.

@skydoves
Copy link
Owner

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
Copy link

AzizFasihHazel commented May 7, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants