question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

complete_icon attribute requires String not Drawable!

See original GitHub issue

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

  • Library Version. 0.9.0
  • Android Version. 11
  • Emulator/Device specs. Huawei p40
  • Logs/Crash reports/Stacktraces. nothing
  • Example Code/Link to repositories. N/A

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
doohabcommented, Mar 13, 2021

Have you tried in a emulator?

It works perfect on the emulator, both my app and the expample app

Can you try to run the example app in this repo in your device?

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.

0reactions
doohabcommented, Mar 13, 2021

It seems like a problem with the Huawei phone and the handling of AnimatedVectorDrawables

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

getting " 'android:icon' attribute: attribute is not a string value ...
If you are using any android system icons as activity icons (i.e. manifest contains <activity ... android:icon="@android:drawable/.
Read more >
Images in Xamarin.Forms - Microsoft Learn
In this article. Display images; Local images; Embedded images; Download images; Animated GIFs; Icons and splash screens; Icons ...
Read more >
ImageView - Android Developers
android:tag, Supply a tag for this view containing a String, to be retrieved ... jumpToCurrentState() on all Drawable objects associated with this view....
Read more >
<input type="image"> - HTML: HyperText Markup Language
<input type="image"> elements do not accept value attributes. ... example that includes all the essential features you'd need to use (These ...
Read more >
Images - React Native
The bundler knows the image dimensions, no need to duplicate it in ... that the src attribute is named source and doesn't take...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found