sketchub icon

Layout Animation

Jeiel-Miranda
3 Likes
0 Comments
79 Downloads

Screenshots

About

"Pulse" type animation. Make your main layout with a more interesting loading idea.

ObjectAnimator logo = ObjectAnimator.ofFloat(imageview1, "alpha", 0f, 1f);
logo.setDuration(1000); // Defina a duração da animação em milissegundos
logo.setRepeatMode(ValueAnimator.REVERSE); // Reverte a animação ao invés de reiniciar
logo.setRepeatCount(ValueAnimator.INFINITE); // Faz a animação repetir infinitamente
logo.setInterpolator(new LinearInterpolator()); // Define o interpolador linear
logo.start(); // Inicia a animação
time = new TimerTask() {
    @Override
    public void run() {
        runOnUiThread(new Runnable() {
            @Override
            public void run() {
                next.setAction(Intent.ACTION_VIEW);
                next.setClass(getApplicationContext(), TestActivity.class);
                startActivity(next);
            }
        });
    }
};
_timer.schedule(time, (int)(7000));

©2024 Sketchub | User Policy