本文整理汇总了Java中android.support.v17.leanback.widget.GuidanceStylist.Guidance方法的典型用法代码示例。如果您正苦于以下问题:Java GuidanceStylist.Guidance方法的具体用法?Java GuidanceStylist.Guidance怎么用?Java GuidanceStylist.Guidance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.support.v17.leanback.widget.GuidanceStylist
的用法示例。
在下文中一共展示了GuidanceStylist.Guidance方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreateGuidance
import android.support.v17.leanback.widget.GuidanceStylist; //导入方法依赖的package包/类
@Override
@NonNull
public GuidanceStylist.Guidance onCreateGuidance(@NonNull Bundle savedInstanceState) {
String title = getString(R.string.login_fragment_title);
String description = getString(R.string.login_fragment_description);
return new GuidanceStylist.Guidance(title, description, "", null);
}
示例2: onCreateGuidance
import android.support.v17.leanback.widget.GuidanceStylist; //导入方法依赖的package包/类
@Override
@NonNull
public GuidanceStylist.Guidance onCreateGuidance(@NonNull Bundle savedInstanceState) {
String title = getString(R.string.pref_title_screen_signin);
String description = getString(R.string.pref_title_login_description);
Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon);
return new GuidanceStylist.Guidance(title, description, "", icon);
}
示例3: onCreateGuidance
import android.support.v17.leanback.widget.GuidanceStylist; //导入方法依赖的package包/类
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
return new GuidanceStylist.Guidance(
getString(R.string.rescan_when_opening_application),
null, null,
getResources().getDrawable(R.drawable.pref_nas_rescan));
}
示例4: onCreateGuidance
import android.support.v17.leanback.widget.GuidanceStylist; //导入方法依赖的package包/类
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
return new GuidanceStylist.Guidance(
getString(R.string.scheduled_rescan),
null,
getString(R.string.rescan),
getResources().getDrawable(R.drawable.pref_clock));
}
示例5: onCreateGuidance
import android.support.v17.leanback.widget.GuidanceStylist; //导入方法依赖的package包/类
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
return new GuidanceStylist.Guidance(
getString(R.string.scheduled_rescan_time),
null,
getString(R.string.scheduled_rescan_period),
getResources().getDrawable(R.drawable.pref_clock));
}
示例6: onCreateGuidance
import android.support.v17.leanback.widget.GuidanceStylist; //导入方法依赖的package包/类
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
return new GuidanceStylist.Guidance(
getString(R.string.rescan),
getString(R.string.rescan_description), "",
getResources().getDrawable(R.drawable.pref_nas_rescan));
}
示例7: onCreateGuidance
import android.support.v17.leanback.widget.GuidanceStylist; //导入方法依赖的package包/类
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
String title = getString(R.string.dvr_series_schedules_stop_dialog_title);
String description = getString(R.string.dvr_series_schedules_stop_dialog_description);
Drawable icon = getContext().getDrawable(R.drawable.ic_dvr_delete);
return new GuidanceStylist.Guidance(title, description, null, icon);
}
示例8: onCreateGuidance
import android.support.v17.leanback.widget.GuidanceStylist; //导入方法依赖的package包/类
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
String title = getString(R.string.dvr_series_recording_dialog_title);
Drawable icon;
if (!mHasConflict) {
icon = getResources().getDrawable(R.drawable.ic_check_circle_white_48dp, null);
} else {
icon = getResources().getDrawable(R.drawable.ic_error_white_48dp, null);
}
return new GuidanceStylist.Guidance(title, getDescription(), null, icon);
}
示例9: onCreateGuidance
import android.support.v17.leanback.widget.GuidanceStylist; //导入方法依赖的package包/类
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
GuidanceStylist.Guidance guidance = new GuidanceStylist.Guidance(mMovie.getTitle(),
getString(R.string.wizard_example_rental_period),
mMovie.getBreadcrump(), null);
return guidance;
}
示例10: onCreateGuidance
import android.support.v17.leanback.widget.GuidanceStylist; //导入方法依赖的package包/类
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
GuidanceStylist.Guidance guidance = new GuidanceStylist.Guidance(mMovie.getTitle(),
getString(R.string.wizard_example_choose_rent_options),
mMovie.getBreadcrump(), null);
return guidance;
}
示例11: onCreateGuidance
import android.support.v17.leanback.widget.GuidanceStylist; //导入方法依赖的package包/类
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
GuidanceStylist.Guidance guidance = new GuidanceStylist.Guidance(mMovie.getTitle(),
getString(R.string.wizard_example_rental_period),
mMovie.getBreadcrump(), null);
return guidance;
}
示例12: onCreateGuidance
import android.support.v17.leanback.widget.GuidanceStylist; //导入方法依赖的package包/类
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
GuidanceStylist.Guidance guidance = new GuidanceStylist.Guidance(mMovie.getTitle(),
getString(R.string.wizard_example_just_a_second),
mMovie.getBreadcrump(), null);
return guidance;
}
示例13: onCreateGuidance
import android.support.v17.leanback.widget.GuidanceStylist; //导入方法依赖的package包/类
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
String title = getString(R.string.wizard_example_new_payment_guidance_title);
String description = getString(R.string.wizard_example_new_payment_guidance_description);
String breadcrumb = mMovie.getBreadcrump();
GuidanceStylist.Guidance guidance = new GuidanceStylist.Guidance(title, description,
breadcrumb, null);
return guidance;
}
示例14: onCreateGuidance
import android.support.v17.leanback.widget.GuidanceStylist; //导入方法依赖的package包/类
@Override
@NonNull
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
String title = getString(R.string.setting_page_title);
String breadcrumb = getString(R.string.setting_page_breadcrumb);
String description = getString(R.string.setting_page_description);
Drawable icon = getActivity().getDrawable(R.drawable.title_android_tv);
return new GuidanceStylist.Guidance(title, description, breadcrumb, icon);
}
示例15: onCreateGuidance
import android.support.v17.leanback.widget.GuidanceStylist; //导入方法依赖的package包/类
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
Resources resources = getResources();
String title = resources.getString(R.string.ondemand_settings_about);
Drawable icon = resources.getDrawable(R.drawable.ic_info_outline_black_24dp, null);
return new GuidanceStylist.Guidance(title, DESCRIPTION, BREADCRUMB, icon);
}