use of dz.easy.androidclient.Activities.StartActivity in project easy by MehdiBenmesa.
the class MainActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_svg);
final PathView pathView = (PathView) findViewById(R.id.pathView);
final PathView pathView2 = (PathView) findViewById(R.id.pathView2);
pathView.getPathAnimator().delay(1000).duration(3500).listenerStart(new PathView.AnimatorBuilder.ListenerStart() {
@Override
public void onAnimationStart() {
}
}).listenerEnd(new PathView.AnimatorBuilder.ListenerEnd() {
@Override
public void onAnimationEnd() {
Intent i = new Intent(MainActivity.this, StartActivity.class);
startActivity(i);
finish();
}
}).interpolator(new AccelerateDecelerateInterpolator()).start();
pathView.useNaturalColors();
pathView.setFillAfter(true);
pathView2.getPathAnimator().delay(1000).duration(2500).listenerStart(new PathView.AnimatorBuilder.ListenerStart() {
@Override
public void onAnimationStart() {
}
}).listenerEnd(new PathView.AnimatorBuilder.ListenerEnd() {
@Override
public void onAnimationEnd() {
}
}).interpolator(new AccelerateDecelerateInterpolator()).start();
pathView2.useNaturalColors();
pathView2.setFillAfter(true);
}
Aggregations