Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

141
Vistas
Animate activity which is not part of your app

How can I apply closing transition on activity which is not part of my app. Say, I am opening contacts app for picking contacts, I apply slide up transition when opening contacts app but closing app applies default animation (slide left).

Is there any possibility of animating it on closing too?

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I assume when you start activity of another app (in this example it is Contacts app) you use overridePendingTransition() in your activity for the animation, something like this :

Intent intent= new Intent(Intent.ACTION_PICK,  ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(intent, requestCode);
overridePendingTransition(R.anim.slide_in_right_to_left, android.R.anim.fade_out);

In onResume() method of your activity you can use overridePendingTransition() as well to animate activity (that is from Contacts app) from which you return:

@Override
protected void onResume() {
    overridePendingTransition(0, android.R.anim.slide_out_right);
    super.onResume();
}
about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda