I did some digging in Android code and saw use in an undefined execution step. after trying to create my own drawable with this tag:
<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/spinner_pia" android:pivotX="50%" android:pivotY="50%" android:framesCount="12" android:frameDuration="100" />
I get an error: "The resource identifier was not found for the" frameDuration "attribute in the" android "package - this means that frameDuration is a private attribute. Is there a way to use this animation-rotation function?
My task is to replace the default undefined progress bar. I would like to do this with a minimal amount of code (just change a few attributes if possible). Using the ProgressBar view, set:
android:indeterminateOnly="true" android:indeterminateBehavior="cycle" android:indeterminateDuration="3500" android:indeterminateDrawable="@drawable/pia_sivuvator"
and the point "@ drawable / pia_sivuvator" to this object would make my task as graceful as they are, but I am stuck in these private attributes.
help?
android animation progress-bar customization
oriharel Dec 05 2018-10-15 15:04
source share