aednlaxer / comments.aednlaxer.github.io

0 stars 0 forks source link

2021/01/29/android-xml-as-path/ #2

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Getting Android vector drawable as Path · aednlaxer

https://aednlaxer.github.io/2021/01/29/android-xml-as-path/

WaqasAzamKml commented 2 years ago

Well Alex! Can you help me do this in Java?

aednlaxer commented 2 years ago

Hi Muhammad. Unfortunately there's no code available in Java but I believe that the sample code in Kotlin is self-explanatory and could be rewritten in Java. If you need an example how the code from above could be used in a real project, consider checking out the article about splash screen animation (the code is in Kotlin). It uses similar code to retrieve a path from an Android vector drawable.