mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Add slide animation for DetailActivity
This commit is contained in:
parent
a38b7cacba
commit
46cc36d202
2 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,7 @@ public class MedicamentDetailActivity extends AppCompatActivity {
|
|||
getMedicamentChanges();
|
||||
setResult(1);
|
||||
finish();
|
||||
overridePendingTransition(R.anim.slide_from_left, R.anim.slide_to_right);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -360,6 +360,7 @@ public class MedicamentListActivity extends AppCompatActivity {
|
|||
Intent intent = new Intent(context, MedicamentDetailActivity.class);
|
||||
intent.putExtra("medicament", med);
|
||||
startActivityForResult(intent, CUSTOMIZED_REQUEST_CODE);
|
||||
overridePendingTransition(R.anim.slide_from_right, R.anim.slide_to_left);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -511,6 +512,7 @@ public class MedicamentListActivity extends AppCompatActivity {
|
|||
Intent intent = new Intent(context, MedicamentDetailActivity.class);
|
||||
intent.putExtra("medicament", medicamentCourant);
|
||||
startActivityForResult(intent, CUSTOMIZED_REQUEST_CODE);
|
||||
overridePendingTransition(R.anim.slide_from_right, R.anim.slide_to_left);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue