Answer the question
In order to leave comments, you need to log in
Android: Is it possible to make a horizontal Preloader on Drawable?
Hey!
We need a preloader in the form of a running rectangle, like this:
A simple running rectangle.
Preferably everything is completely within the framework of Drawable (i.e. without additional code).
Just like here we made a preloader using < animated-rotate >.
Thank you!
Answer the question
In order to leave comments, you need to log in
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="true">
<item
android:drawable="@drawable/progressbar"
android:duration="1000" />
<item
android:drawable="@drawable/progressbar_1"
android:duration="1000" />
<item
android:drawable="@drawable/progressbar_2"
android:duration="1000" />
</animation-list>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question