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


Java GuidanceStylist类代码示例

本文整理汇总了Java中android.support.v17.leanback.widget.GuidanceStylist的典型用法代码示例。如果您正苦于以下问题:Java GuidanceStylist类的具体用法?Java GuidanceStylist怎么用?Java GuidanceStylist使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


GuidanceStylist类属于android.support.v17.leanback.widget包,在下文中一共展示了GuidanceStylist类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: 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));
}
 
开发者ID:archos-sa,项目名称:aos-Video,代码行数:10,代码来源:ScheduledRescanPeriod.java

示例2: 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);
}
 
开发者ID:CrazyDude1994,项目名称:lostfilm-android-client,代码行数:8,代码来源:LoginFragment.java

示例3: 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);
}
 
开发者ID:nejtv,项目名称:androidtv-sample,代码行数:9,代码来源:AuthenticationActivity.java

示例4: onCreateGuidanceStylist

import android.support.v17.leanback.widget.GuidanceStylist; //导入依赖的package包/类
@Override
public GuidanceStylist onCreateGuidanceStylist() {
    return new GuidanceStylist() {
        @Override
        public int onProvideLayoutId() {
            return R.layout.guidedstep_second_guidance;
        }
    };
}
 
开发者ID:nejtv,项目名称:androidtv-sample,代码行数:10,代码来源:GuidedStepActivity.java

示例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.rescan_when_opening_application),
            null, null,
            getResources().getDrawable(R.drawable.pref_nas_rescan));
}
 
开发者ID:archos-sa,项目名称:aos-Video,代码行数:9,代码来源:RescanWhenOpeningApplication.java

示例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.scheduled_rescan_time),
            null,
            getString(R.string.scheduled_rescan_period),
            getResources().getDrawable(R.drawable.pref_clock));
}
 
开发者ID:archos-sa,项目名称:aos-Video,代码行数:10,代码来源:ScheduledRescanTime.java

示例7: 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));
}
 
开发者ID:archos-sa,项目名称:aos-Video,代码行数:9,代码来源:RescanFragment.java

示例8: 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);
}
 
开发者ID:trevd,项目名称:android_packages_apps_tv,代码行数:9,代码来源:DvrStopSeriesRecordingFragment.java

示例9: 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);
}
 
开发者ID:trevd,项目名称:android_packages_apps_tv,代码行数:12,代码来源:DvrSeriesScheduledFragment.java

示例10: onCreateGuidanceStylist

import android.support.v17.leanback.widget.GuidanceStylist; //导入依赖的package包/类
@Override
public GuidanceStylist onCreateGuidanceStylist() {
    return new GuidanceStylist() {
        @Override
        public View onCreateView(LayoutInflater inflater, ViewGroup container,
                Guidance guidance) {
            View view = super.onCreateView(inflater, container, guidance);
            if (guidance.getIconDrawable() == null) {
                // Icon view should not take up space when we don't use image.
                getIconView().setVisibility(View.GONE);
            }
            return view;
        }
    };
}
 
开发者ID:trevd,项目名称:android_packages_apps_tv,代码行数:16,代码来源:SetupGuidedStepFragment.java

示例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;

}
 
开发者ID:googlesamples,项目名称:leanback-showcase,代码行数:10,代码来源:WizardExample2ndStepFragment.java

示例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_choose_rent_options),
            mMovie.getBreadcrump(), null);
    return guidance;
}
 
开发者ID:googlesamples,项目名称:leanback-showcase,代码行数:9,代码来源:WizardExample1stStepFragment.java

示例13: 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;
}
 
开发者ID:googlesamples,项目名称:leanback-showcase,代码行数:9,代码来源:WizardExample4thStepFragment.java

示例14: 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;
}
 
开发者ID:googlesamples,项目名称:leanback-showcase,代码行数:9,代码来源:WizardExample3rdStepFragment.java

示例15: 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;
}
 
开发者ID:googlesamples,项目名称:leanback-showcase,代码行数:12,代码来源:WizardNewPaymentStepFragment.java


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