本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}