android.support.v17.leanback.app.GuidedStepSupportFragment Java Examples

The following examples show how to use android.support.v17.leanback.app.GuidedStepSupportFragment. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SettingsActivity.java    From alltv with MIT License 5 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (null == savedInstanceState) {
        Gson gson = new Gson();
        mSettings = gson.fromJson(getIntent().getStringExtra(getStringById(R.string.SETTINGSDATA_STR)), SettingsData.class);
        GuidedStepSupportFragment.addAsRoot(this, new MainStepFragment(), android.R.id.content);
    }
    mWindowSize = Utils.getDisplaySize(this);
}
 
Example #2
Source File: SettingsActivity.java    From alltv with MIT License 5 votes vote down vote up
@Override
public void onGuidedActionClicked(GuidedAction action) {
    FragmentManager fm = getFragmentManager();

    if (action.getId() == GuidedId.Pooq.ordinal()) {
        GuidedStepSupportFragment.add(fm, new PooqStepFragment());
    } else if (action.getId() == GuidedId.Tving.ordinal()) {
        GuidedStepSupportFragment.add(fm, new TvingStepFragment());
    } else if (action.getId() == GuidedId.Oksusu.ordinal()) {
        GuidedStepSupportFragment.add(fm, new OksusuStepFragment());
    }
}
 
Example #3
Source File: ManualSetupActivity.java    From hyperion-android-grabber with MIT License 5 votes vote down vote up
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (null == savedInstanceState) {
        GuidedStepSupportFragment.addAsRoot(this, new BasicSettingsStepFragment(), android.R.id.content);
    }
}