Search in sources :

Example 1 with DefaultServiceProvider

use of com.zhuinden.simplestackextensions.services.DefaultServiceProvider in project simple-stack by Zhuinden.

the class MainActivity method onCreate.

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    fragmentStateChanger = new DefaultFragmentStateChanger(getSupportFragmentManager(), R.id.container);
    Navigator.configure().setStateChanger(new SimpleStateChanger(this)).setScopedServices(new DefaultServiceProvider()).install(this, findViewById(R.id.container), History.of(WordListKey.create()));
}
Also used : DefaultFragmentStateChanger(com.zhuinden.simplestackextensions.fragments.DefaultFragmentStateChanger) SimpleStateChanger(com.zhuinden.simplestack.SimpleStateChanger) DefaultServiceProvider(com.zhuinden.simplestackextensions.services.DefaultServiceProvider)

Aggregations

SimpleStateChanger (com.zhuinden.simplestack.SimpleStateChanger)1 DefaultFragmentStateChanger (com.zhuinden.simplestackextensions.fragments.DefaultFragmentStateChanger)1 DefaultServiceProvider (com.zhuinden.simplestackextensions.services.DefaultServiceProvider)1