当前位置: 首页>>代码示例>>Java>>正文


Java GuidedStepFragment.addAsRoot方法代码示例

本文整理汇总了Java中android.support.v17.leanback.app.GuidedStepFragment.addAsRoot方法的典型用法代码示例。如果您正苦于以下问题:Java GuidedStepFragment.addAsRoot方法的具体用法?Java GuidedStepFragment.addAsRoot怎么用?Java GuidedStepFragment.addAsRoot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.support.v17.leanback.app.GuidedStepFragment的用法示例。


在下文中一共展示了GuidedStepFragment.addAsRoot方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreate

import android.support.v17.leanback.app.GuidedStepFragment; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (null == savedInstanceState) {
        GuidedStepFragment.addAsRoot(this, new FirstStepFragment(), android.R.id.content);
    }
}
 
开发者ID:nejtv,项目名称:androidtv-sample,代码行数:8,代码来源:AuthenticationActivity.java

示例2: onCreate

import android.support.v17.leanback.app.GuidedStepFragment; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (savedInstanceState==null) {
        // One hour lost to find out the fucking weirdo way how to do this, i hate you leanback tream!
        GuidedStepFragment firstFragment = new RescanFragment();
        GuidedStepFragment.addAsRoot(this, firstFragment,android.R.id.content);
    }
}
 
开发者ID:archos-sa,项目名称:aos-Video,代码行数:10,代码来源:RescanActivity.java

示例3: onListGrab

import android.support.v17.leanback.app.GuidedStepFragment; //导入方法依赖的package包/类
@Override
public void onListGrab(List<ListElem> output, String t, String st, Video v) {
    lists = output;
    title = t;
    subtitle = st;
    video = v;
    GuidedStepFragment.addAsRoot(this, new FirstStepFragment(), android.R.id.content);
}
 
开发者ID:ad-on-is,项目名称:chilly,代码行数:9,代码来源:ListSelectActivity.java

示例4: onCreate

import android.support.v17.leanback.app.GuidedStepFragment; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
    TvApplication.setCurrentRunningProcess(this, true);
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_dvr_series_settings);
    long seriesRecordingId = getIntent().getLongExtra(SERIES_RECORDING_ID, -1);
    SoftPreconditions.checkArgument(seriesRecordingId != -1);

    if (savedInstanceState == null) {
        SeriesSettingsFragment settingFragment = new SeriesSettingsFragment();
        settingFragment.setArguments(getIntent().getExtras());
        GuidedStepFragment.addAsRoot(this, settingFragment, R.id.dvr_settings_view_frame);
    }
}
 
开发者ID:trevd,项目名称:android_packages_apps_tv,代码行数:15,代码来源:DvrSeriesSettingsActivity.java

示例5: onCreate

import android.support.v17.leanback.app.GuidedStepFragment; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.halfsized_dialog);
    if (savedInstanceState == null) {
        DvrSeriesScheduledFragment dvrSeriesScheduledFragment =
                new DvrSeriesScheduledFragment();
        dvrSeriesScheduledFragment.setArguments(getIntent().getExtras());
        GuidedStepFragment.addAsRoot(this, dvrSeriesScheduledFragment,
                R.id.halfsized_dialog_host);
    }
}
 
开发者ID:trevd,项目名称:android_packages_apps_tv,代码行数:13,代码来源:DvrSeriesScheduledDialogActivity.java

示例6: onCreate

import android.support.v17.leanback.app.GuidedStepFragment; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
    TvApplication.setCurrentRunningProcess(this, true);
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_dvr_series_settings);
    // Check savedInstanceState to prevent that activity is being showed with animation.
    if (savedInstanceState == null) {
        SeriesDeletionFragment deletionFragment = new SeriesDeletionFragment();
        deletionFragment.setArguments(getIntent().getExtras());
        GuidedStepFragment.addAsRoot(this, deletionFragment, R.id.dvr_settings_view_frame);
    }
}
 
开发者ID:trevd,项目名称:android_packages_apps_tv,代码行数:13,代码来源:DvrSeriesDeletionActivity.java

示例7: onCreate

import android.support.v17.leanback.app.GuidedStepFragment; //导入方法依赖的package包/类
@Override public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getWindow().setBackgroundDrawable(new ColorDrawable(Color.parseColor("#21272A")));

    if (savedInstanceState == null) {
        GuidedStepFragment fragment = new DialogExampleFragment();
        GuidedStepFragment.addAsRoot(this, fragment, android.R.id.content);
    }
}
 
开发者ID:googlesamples,项目名称:leanback-showcase,代码行数:10,代码来源:DialogExampleActivity.java

示例8: onCreate

import android.support.v17.leanback.app.GuidedStepFragment; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getWindow().setBackgroundDrawableResource(R.drawable.wizard_background_blackned);

    GuidedStepFragment fragment = new WizardExample1stStepFragment();
    fragment.setArguments(getIntent().getExtras()); // Delegate Movie to first step.
    GuidedStepFragment.addAsRoot(this, fragment, android.R.id.content);
}
 
开发者ID:googlesamples,项目名称:leanback-showcase,代码行数:10,代码来源:WizardExampleActivity.java

示例9: onCreate

import android.support.v17.leanback.app.GuidedStepFragment; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (null == savedInstanceState) {
        GuidedStepFragment.addAsRoot(this, new PublishChannelFragment(), android.R.id.content);
    }
}
 
开发者ID:googlesamples,项目名称:leanback-showcase,代码行数:8,代码来源:ChannelPublishActivity.java

示例10: onCreate

import android.support.v17.leanback.app.GuidedStepFragment; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {

    // dependency injection
    ((RingApplication) getApplication()).getRingInjectionComponent().inject(this);
    super.onCreate(savedInstanceState);
    ButterKnife.bind(this);


    Intent intent = getIntent();
    if (intent != null) {
        mAccountType = intent.getAction();
    }
    if (mAccountType == null) {
        mAccountType = AccountConfig.ACCOUNT_TYPE_RING;
    }

    if (savedInstanceState == null) {
        GuidedStepFragment.addAsRoot(this, mHomeFragment, android.R.id.content);
    } else {
        mProfileFragment = (TVProfileCreationFragment) getFragmentManager().getFragment(savedInstanceState, PROFILE_TAG);
        mFullname = savedInstanceState.getString("mFullname");
        mLinkAccount = savedInstanceState.getBoolean("mLinkAccount");
    }

    presenter.init(getIntent().getAction() != null ? getIntent().getAction() : AccountConfig.ACCOUNT_TYPE_RING);
}
 
开发者ID:savoirfairelinux,项目名称:ring-client-android,代码行数:28,代码来源:TVAccountWizard.java

示例11: onCreate

import android.support.v17.leanback.app.GuidedStepFragment; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (null == savedInstanceState) {
        GuidedStepFragment.addAsRoot(this, new InfoStepFragment(), android.R.id.content);
    }
}
 
开发者ID:seventhmoon,项目名称:hktv-android,代码行数:8,代码来源:TvActivity.java

示例12: onCreate

import android.support.v17.leanback.app.GuidedStepFragment; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getActivityComponent().inject(this);
    GuidedStepFragment.addAsRoot(this, new AutoLoopStepFragment(), android.R.id.content);
}
 
开发者ID:hitherejoe,项目名称:Vineyard,代码行数:7,代码来源:GuidedStepActivity.java


注:本文中的android.support.v17.leanback.app.GuidedStepFragment.addAsRoot方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。