What is the simplest way to transition a fragment in Android?
I'm striving for a single line solution.
What I tried:
I added a transition xml file:
<?xml version="1.0" encoding="utf-8"?>
<transitionManager xmlns:android="http://schemas.android.com/apk/res/android">
<fade xmlns:android="http://schemas.android.com/apk/res/android" />
</transitionManager>
And I'm using the following code to apply the above transition:
EmailInfoFragment instanceFragment=
(EmailInfoFragment)getSupportFragmentManager().findFragmentById(R.id.emailInfoFrag);
getSupportFragmentManager().beginTransaction().setTransition(1);
instanceFragment.whatToShow(result);
I know that the code above is completely wrong, but this is something I'm trying to achieve, apply a very simple transition to a fragment on screen...