-
Notifications
You must be signed in to change notification settings - Fork 164
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
complete_icon attribute requires String not Drawable! #153
Comments
I needed to call SVID_20210310_104307_11.mp4Kotlin: |
What you mean "it asks for String"? The type of this attribute is set the <com.ncorti.slidetoact.SlideToActView
android:id="@+id/slide_custom_icon"
app:complete_icon="@drawable/custom_complete_animated"/>
Can you provide a reproducer? slidetoact/example/src/main/java/com/ncorti/slidetoact/example/SampleActivity.java Line 79 in fca28dd
The checkmark is shown "by default", you should not set anything special to let it show. |
Have you tried in a emulator? I'm trying to understand if this is a problem of your device or of your configuration. |
It works perfect on the emulator, both my app and the expample app
the example app not playing complete animation on my Huawei. But if I close the app and run it again, the checkmark is there. So, it seems my phone is the problem. |
I don't really know how to reproduce this at this point. It seems like a problem with the Huawei phone and the handling of |
I don't think this is the case, because I have an animated drawable on another activity as a background for an ImageView, cast it as Animator and calling start() without problem. |
XML layout:
app:complete_icon="@drawable/slidetoact_animated_ic_check"
It asks for String not drawable. Also, setting this in code not working, no animation at slide completed:
slide.completeIcon = R.drawable.slidetoact_animated_ic_check
Details
The text was updated successfully, but these errors were encountered: