The animation on the first activity does not work when I use startActivity and I don't know it's strange.
public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); getSupportActionBar().hide(); ImageView img = (ImageView) findViewById(R.id.splash); img.animate().scaleX(0.6f).scaleY(0.6f).rotation(1080f).setDuration(2000); Intent intent = new Intent(getApplicationContext(), NextActivity.class); startActivity(intent); } }
overridePendingTransition