GHH
GHH

Reputation: 2019

How to smooth the animation from loading to complete

I have a progressBar(android default) and complete imageView

    <ProgressBar
        android:id="@+id/progressBar"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"/>

enter image description here enter image description here

if i use View.GONE and View.INVISIBLE, it looks weird

here is example

Is there have easy way to make it smooth?

Upvotes: 0

Views: 169

Answers (1)

Amin05
Amin05

Reputation: 11

I was referring to the answer from ashakirov on https://stackoverflow.com/a/55648103/9261288 he uses Transition API, maybe you can try it to make your animation smoother.

Upvotes: 0

Related Questions