Search in sources :

Example 1 with SharedElementFragmentStateChanger

use of com.example.fragmenttransitions.core.navigation.SharedElementFragmentStateChanger in project simple-stack by Zhuinden.

the class MainActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    fragmentStateChanger = new SharedElementFragmentStateChanger(getSupportFragmentManager(), R.id.container);
    Navigator.configure().setStateChanger(new SimpleStateChanger(this)).install(this, findViewById(R.id.container), History.of(KittenGridKey.create()));
}
Also used : SharedElementFragmentStateChanger(com.example.fragmenttransitions.core.navigation.SharedElementFragmentStateChanger) SimpleStateChanger(com.zhuinden.simplestack.SimpleStateChanger)

Aggregations

SharedElementFragmentStateChanger (com.example.fragmenttransitions.core.navigation.SharedElementFragmentStateChanger)1 SimpleStateChanger (com.zhuinden.simplestack.SimpleStateChanger)1