|
|
@@ -11,12 +11,14 @@ import android.view.animation.Animation; |
|
|
|
import android.view.animation.AnimationUtils; |
|
|
|
import android.view.animation.AnticipateInterpolator; |
|
|
|
import android.widget.ImageView; |
|
|
|
import android.widget.LinearLayout; |
|
|
|
|
|
|
|
import androidx.annotation.NonNull; |
|
|
|
import androidx.appcompat.app.AppCompatActivity; |
|
|
|
|
|
|
|
public class WelcomeActivity extends AppCompatActivity { |
|
|
|
private ImageView imageView; |
|
|
|
private LinearLayout llcenter; |
|
|
|
|
|
|
|
private Handler handler = new Handler() { |
|
|
|
@SuppressLint("HandlerLeak") |
|
|
@@ -42,13 +44,14 @@ public class WelcomeActivity extends AppCompatActivity { |
|
|
|
super.onCreate(savedInstanceState); |
|
|
|
this.setContentView(R.layout.activity_welcome); |
|
|
|
imageView = findViewById(R.id.imageView); |
|
|
|
llcenter = findViewById(R.id.llcenter); |
|
|
|
Animation animation = AnimationUtils.loadAnimation(this, R.anim.img_anim); |
|
|
|
animation.start(); |
|
|
|
imageView.animate() |
|
|
|
llcenter.animate() |
|
|
|
.scaleXBy(1.5f) |
|
|
|
.scaleYBy(1.5f) |
|
|
|
.setInterpolator(new AnticipateInterpolator()) |
|
|
|
.setDuration(1300) |
|
|
|
.setDuration(1400) |
|
|
|
.setListener(new AnimatorListenerAdapter() { |
|
|
|
@Override |
|
|
|
public void onAnimationStart(Animator animation) { |
|
|
|