Java 类android.support.v17.leanback.widget.GuidanceStylist 实例源码

项目:lostfilm-android-client    文件:LoginFragment.java   
@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);
}
项目:androidtv-sample    文件:AuthenticationActivity.java   
@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);
}
项目:androidtv-sample    文件:GuidedStepActivity.java   
@Override
public GuidanceStylist onCreateGuidanceStylist() {
    return new GuidanceStylist() {
        @Override
        public int onProvideLayoutId() {
            return R.layout.guidedstep_second_guidance;
        }
    };
}
项目:aos-Video    文件:RescanWhenOpeningApplication.java   
@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));
}
项目:aos-Video    文件:ScheduledRescanPeriod.java   
@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));
}
项目:aos-Video    文件:ScheduledRescanTime.java   
@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));
}
项目:aos-Video    文件:RescanFragment.java   
@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));
}
项目:chilly    文件:AuthenticationActivity.java   
@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);
}
项目:chilly    文件:GuidedStepActivity.java   
@Override
public GuidanceStylist onCreateGuidanceStylist() {
    return new GuidanceStylist() {
        @Override
        public int onProvideLayoutId() {
            return R.layout.guidedstep_second_guidance;
        }
    };
}
项目:android_packages_apps_tv    文件:DvrStopSeriesRecordingFragment.java   
@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);
}
项目:android_packages_apps_tv    文件:DvrSeriesScheduledFragment.java   
@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);
}
项目:android_packages_apps_tv    文件:SetupGuidedStepFragment.java   
@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;
        }
    };
}
项目:leanback-showcase    文件:WizardExample2ndStepFragment.java   
@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;

}
项目:leanback-showcase    文件:WizardExample1stStepFragment.java   
@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;
}
项目:leanback-showcase    文件:WizardExample4thStepFragment.java   
@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;
}
项目:leanback-showcase    文件:WizardExample3rdStepFragment.java   
@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;
}
项目:leanback-showcase    文件:WizardNewPaymentStepFragment.java   
@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;
}
项目:leanback-showcase    文件:PublishChannelFragment.java   
@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);
}
项目:leanback-showcase    文件:PublishChannelFragment.java   
@Override
public GuidanceStylist onCreateGuidanceStylist() {
    return new GuidanceStylist() {
        @Override
        public int onProvideLayoutId() {
            return R.layout.setting_page;
        }
    };
}
项目:danish-media-license    文件:AboutFragment.java   
@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);
}
项目:danish-media-license    文件:SetupFragment.java   
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
  Resources resources = getResources();
  String title = resources.getString(R.string.app_name);
  String description = resources.getString(R.string.live_setup_description);
  Drawable icon = resources.getDrawable(R.mipmap.ic_launcher, null);
  return new GuidanceStylist.Guidance(title, description, BREADCRUMB, icon);
}
项目:Vineyard    文件:AutoLoopStepFragment.java   
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.guided_step_auto_loop_title);
    String description = getString(R.string.guided_step_auto_loop_description);
    Drawable icon = getActivity().getDrawable(R.drawable.lopp);
    return new GuidanceStylist.Guidance(title, description, "", icon);
}
项目:ring-client-android    文件:TVHomeAccountCreationFragment.java   
@Override
@NonNull
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.account_creation_home);
    String breadcrumb = "";
    String description = getString(R.string.help_ring);
    Drawable icon = getActivity().getResources().getDrawable(R.drawable.ic_logo_ring_white);
    return new GuidanceStylist.Guidance(title, description, breadcrumb, icon);
}
项目:ring-client-android    文件:TVProfileCreationFragment.java   
@Override
@NonNull
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.account_create_title);
    String breadcrumb = "";
    String description = getString(R.string.profile_message_warning);
    Drawable icon = getActivity().getResources().getDrawable(R.drawable.ic_contact_picture);
    return new GuidanceStylist.Guidance(title, description, breadcrumb, icon);
}
项目:ring-client-android    文件:TVRingAccountCreationFragment.java   
@Override
@NonNull
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.account_create_title);
    String breadcrumb = "";
    String description = getString(R.string.help_ring);

    Drawable icon = getActivity().getResources().getDrawable(R.drawable.ic_contact_picture);
    return new GuidanceStylist.Guidance(title, description, breadcrumb, icon);
}
项目:ring-client-android    文件:TVProfileEditingFragment.java   
@Override
@NonNull
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.profile);
    String breadcrumb = "";
    String description = getString(R.string.profile_message_warning);
    Drawable icon = getActivity().getResources().getDrawable(R.drawable.ic_contact_picture);
    return new GuidanceStylist.Guidance(title, description, breadcrumb, icon);
}
项目:ring-client-android    文件:TVAccountExport.java   
@Override
@NonNull
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.account_export_title);
    String breadcrumb = "";
    String description = getString(R.string.account_link_export_info_light);
    Drawable icon = getActivity().getResources().getDrawable(R.drawable.ic_devices_white);
    return new GuidanceStylist.Guidance(title, description, breadcrumb, icon);
}
项目:ring-client-android    文件:TVRingLinkAccountFragment.java   
@Override
@NonNull
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.account_link_title);
    String breadcrumb = "";
    String description = getString(R.string.help_password_enter) + "\n" + getString(R.string.help_pin_enter);

    Drawable icon = getActivity().getResources().getDrawable(R.drawable.ic_contact_picture);
    return new GuidanceStylist.Guidance(title, description, breadcrumb, icon);
}
项目:hktv-android    文件:InfoStepFragment.java   
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.app_name);
    String description = null;
    String breadcrumb = null;
    Drawable icon = null;

    return new GuidanceStylist.Guidance(title, description, breadcrumb, icon);
}
项目:androidtv-Leanback    文件:AuthenticationActivity.java   
@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);
}
项目:androidtv-Leanback    文件:GuidedStepActivity.java   
@Override
public GuidanceStylist onCreateGuidanceStylist() {
    return new GuidanceStylist() {
        @Override
        public int onProvideLayoutId() {
            return R.layout.guidedstep_second_guidance;
        }
    };
}
项目:BuildingForAndroidTV    文件:GuidedStepActivity.java   
@Override
public GuidanceStylist onCreateGuidanceStylist() {
    return new GuidanceStylist() {
        @Override
        public int onProvideLayoutId() {
            return R.layout.guidedstep_second_guidance;
        }
    };
}
项目:popcorn-android    文件:PTVPreferencesFragment.java   
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
    return new GuidanceStylist.Guidance(getString(R.string.preferences), null, getString(R.string.app_name), null);
}
项目:popcorn-android    文件:PTVPreferencesListFragment.java   
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
    return new GuidanceStylist.Guidance(getArguments().getString(TITLE_ARG, "").toUpperCase(LocaleUtils.getCurrent()), null, getString(R.string.app_name), null);
}
项目:popcorn-android    文件:PTVWelcomeFragment.java   
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
    return new GuidanceStylist.Guidance(getString(R.string.terms_and_conditions), getString(R.string.terms), getString(R.string.app_name), null);
}
项目:popcorn-android    文件:PTVWelcomeFragment.java   
@Override
public GuidanceStylist onCreateGuidanceStylist() {
    return new TermsGuidanceStylist();
}
项目:popcorn-android    文件:PTVUpdateFragment.java   
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
    return new GuidanceStylist.Guidance(getString(R.string.update_available), getString(R.string.new_update), getString(R.string.app_name), null);
}
项目:popcorn-android    文件:PTVUpdateFragment.java   
@Override
public GuidanceStylist onCreateGuidanceStylist() {
    return new TermsGuidanceStylist();
}
项目:BuildingForAndroidTV    文件:SettingsFragment.java   
@NonNull
@Override
public GuidanceStylist.Guidance onCreateGuidance(Bundle savedInstanceState) {
    return new GuidanceStylist.Guidance(getString(R.string.settings_title), null, getString(R.string.app_name), null);
}