J
J
J. Snow2016-08-18 15:10:39
Android
J. Snow, 2016-08-18 15:10:39

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:
4180faa41dde4505a01dfb65355a3128.gifA 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

1 answer(s)
T
Tiberal, 2016-08-18
@Tiberal

<?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>

drawable can be drawn via xml

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question