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

项目:android_packages_apps_tv    文件:DvrStopRecordingFragment.java   
@NonNull
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.dvr_stop_recording_dialog_title);
    String description;
    if (mStopReason == REASON_ON_CONFLICT) {
        String programTitle = mSchedule.getProgramTitle();
        if (TextUtils.isEmpty(programTitle)) {
            ChannelDataManager channelDataManager =
                    TvApplication.getSingletons(getActivity()).getChannelDataManager();
            Channel channel = channelDataManager.getChannel(mSchedule.getChannelId());
            programTitle = channel.getDisplayName();
        }
        description = getString(R.string.dvr_stop_recording_dialog_description_on_conflict,
                mSchedule.getProgramTitle());
    } else {
        description = getString(R.string.dvr_stop_recording_dialog_description);
    }
    Drawable image = getResources().getDrawable(R.drawable.ic_warning_white_96dp, null);
    return new Guidance(title, description, null, image);
}
项目:android_packages_apps_tv    文件:ScanResultFragment.java   
@NonNull
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title;
    String description;
    String breadcrumb;
    if (mChannelCountOnPreference > 0) {
        Resources res = getResources();
        title = res.getQuantityString(R.plurals.ut_result_found_title,
                mChannelCountOnPreference, mChannelCountOnPreference);
        description = res.getQuantityString(R.plurals.ut_result_found_description,
                mChannelCountOnPreference, mChannelCountOnPreference);
        breadcrumb = null;
    } else {
        title = getString(R.string.ut_result_not_found_title);
        if (TunerInputInfoUtils.isBuiltInTuner(getActivity())) {
            description = getString(R.string.bt_result_not_found_description);
        } else {
            description = getString(R.string.ut_result_not_found_description);
        }
        breadcrumb = getString(R.string.ut_setup_breadcrumb);
    }
    return new Guidance(title, description, breadcrumb, null);
}
项目:android_packages_apps_tv    文件:WelcomeFragment.java   
@NonNull
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title;
    String description;
    if (mChannelCountOnPreference == 0) {
        if (TunerInputInfoUtils.isBuiltInTuner(getActivity())) {
            title = getString(R.string.bt_setup_new_title);
            description = getString(R.string.bt_setup_new_description);
        } else {
            title = getString(R.string.ut_setup_new_title);
            description = getString(R.string.ut_setup_new_description);
        }
    } else {
        title = getString(R.string.bt_setup_again_title);
        if (TunerInputInfoUtils.isBuiltInTuner(getActivity())) {
            description = getString(R.string.bt_setup_again_description);
        } else {
            description = getString(R.string.ut_setup_again_description);
        }
    }
    return new Guidance(title, description, null, null);
}
项目:androidtv-sample    文件:GuidedStepActivity.java   
@Override
@NonNull
public Guidance onCreateGuidance(@NonNull Bundle savedInstanceState) {
    String title = getString(R.string.guidedstep_first_title);
    String breadcrumb = getString(R.string.guidedstep_first_breadcrumb);
    String description = getString(R.string.guidedstep_first_description);
    Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon);
    return new Guidance(title, description, breadcrumb, icon);
}
项目:androidtv-sample    文件:GuidedStepActivity.java   
@Override
@NonNull
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.guidedstep_second_title);
    String breadcrumb = getString(R.string.guidedstep_second_breadcrumb);
    String description = getString(R.string.guidedstep_second_description);
    Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon);
    return new Guidance(title, description, breadcrumb, icon);
}
项目:androidtv-sample    文件:GuidedStepActivity.java   
@Override
@NonNull
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.guidedstep_third_title);
    String breadcrumb = getString(R.string.guidedstep_third_breadcrumb);
    String description = getString(R.string.guidedstep_third_command)
            + OPTION_NAMES[getArguments().getInt(ARG_OPTION_IDX)];
    Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon);
    return new Guidance(title, description, breadcrumb, icon);
}
项目:chilly    文件:GuidedStepActivity.java   
@Override
@NonNull
public Guidance onCreateGuidance(@NonNull Bundle savedInstanceState) {
    String title = getString(R.string.guidedstep_first_title);
    String breadcrumb = getString(R.string.guidedstep_first_breadcrumb);
    String description = getString(R.string.guidedstep_first_description);
    Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon);
    return new Guidance(title, description, breadcrumb, icon);
}
项目:chilly    文件:GuidedStepActivity.java   
@Override
@NonNull
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.guidedstep_second_title);
    String breadcrumb = getString(R.string.guidedstep_second_breadcrumb);
    String description = getString(R.string.guidedstep_second_description);
    Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon);
    return new Guidance(title, description, breadcrumb, icon);
}
项目:chilly    文件:GuidedStepActivity.java   
@Override
@NonNull
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.guidedstep_third_title);
    String breadcrumb = getString(R.string.guidedstep_third_breadcrumb);
    String description = getString(R.string.guidedstep_third_command)
            + OPTION_NAMES[getArguments().getInt(ARG_OPTION_IDX)];
    Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon);
    return new Guidance(title, description, breadcrumb, icon);
}
项目:android_packages_apps_tv    文件:SetupSourcesFragment.java   
@NonNull
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.setup_sources_text);
    String description = getString(R.string.setup_sources_description);
    return new Guidance(title, description, null, null);
}
项目:android_packages_apps_tv    文件:SeriesDeletionFragment.java   
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String breadcrumb = null;
    SeriesRecording series = mDvrDataManager.getSeriesRecording(mSeriesRecordingId);
    if (series != null) {
        breadcrumb = series.getTitle();
    }
    return new Guidance(getString(R.string.dvr_series_deletion_title),
            getString(R.string.dvr_series_deletion_description), breadcrumb, null);
}
项目:android_packages_apps_tv    文件:DvrForgetStorageErrorFragment.java   
@NonNull
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getResources().getString(R.string.dvr_error_forget_storage_title);
    String description = getResources().getString(
            R.string.dvr_error_forget_storage_description);
    return new Guidance(title, description, null, null);
}
项目:android_packages_apps_tv    文件:DvrInsufficientSpaceErrorFragment.java   
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getResources().getString(R.string.dvr_error_insufficient_space_title);
    String description = getResources()
            .getString(R.string.dvr_error_insufficient_space_description);
    return new Guidance(title, description, null, null);
}
项目:android_packages_apps_tv    文件:DvrScheduleFragment.java   
@NonNull
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.dvr_schedule_dialog_title);
    Drawable icon = getResources().getDrawable(R.drawable.ic_dvr, null);
    return new Guidance(title, null, null, icon);
}
项目:android_packages_apps_tv    文件:PrioritySettingsFragment.java   
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String breadcrumb = mComeFromSeriesRecording == null ? null
            : mComeFromSeriesRecording.getTitle();
    return new Guidance(getString(R.string.dvr_priority_title),
            getString(R.string.dvr_priority_description), breadcrumb, null);
}
项目:android_packages_apps_tv    文件:DvrMissingStorageErrorFragment.java   
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getResources().getString(R.string.dvr_error_missing_storage_title);
    String description = getResources().getString(
            R.string.dvr_error_missing_storage_description);
    return new Guidance(title, description, null, null);
}
项目:android_packages_apps_tv    文件:DvrAlreadyScheduledFragment.java   
@NonNull
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.dvr_already_scheduled_dialog_title);
    String description = getString(R.string.dvr_already_scheduled_dialog_description,
            DateUtils.formatDateTime(getContext(), mDuplicate.getStartTimeMs(),
                    DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE));
    Drawable image = getResources().getDrawable(R.drawable.ic_warning_white_96dp, null);
    return new Guidance(title, description, null, image);
}
项目:android_packages_apps_tv    文件:DvrConflictFragment.java   
@NonNull
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getResources().getString(R.string.dvr_program_conflict_dialog_title);
    String descriptionPrefix = getString(
            R.string.dvr_program_conflict_dialog_description_prefix, mProgram.getTitle());
    String description = getConflictDescription();
    if (description == null) {
        dismissDialog();
    }
    Drawable icon = getResources().getDrawable(R.drawable.ic_error_white_48dp, null);
    return new Guidance(title, descriptionPrefix + " " + description, null, icon);
}
项目:android_packages_apps_tv    文件:DvrConflictFragment.java   
@NonNull
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getResources().getString(R.string.dvr_channel_conflict_dialog_title);
    String descriptionPrefix = getString(
            R.string.dvr_channel_conflict_dialog_description_prefix,
            mChannel.getDisplayName());
    String description = getConflictDescription();
    if (description == null) {
        dismissDialog();
    }
    Drawable icon = getResources().getDrawable(R.drawable.ic_error_white_48dp, null);
    return new Guidance(title, descriptionPrefix + " " + description, null, icon);
}
项目:android_packages_apps_tv    文件:DvrConflictFragment.java   
@NonNull
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getResources().getString(
            R.string.dvr_epg_channel_watch_conflict_dialog_title);
    String description = getResources().getString(
            R.string.dvr_epg_channel_watch_conflict_dialog_description);
    return new Guidance(title, description, null, null);
}
项目:android_packages_apps_tv    文件:DvrAlreadyRecordedFragment.java   
@NonNull
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.dvr_already_recorded_dialog_title);
    String description = getString(R.string.dvr_already_recorded_dialog_description);
    Drawable image = getResources().getDrawable(R.drawable.ic_warning_white_96dp, null);
    return new Guidance(title, description, null, image);
}
项目:android_packages_apps_tv    文件:ConnectionTypeFragment.java   
@NonNull
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    return new Guidance(getString(R.string.ut_connection_title),
            getString(R.string.ut_connection_description),
            getString(R.string.ut_setup_breadcrumb), null);
}
项目:leanback-showcase    文件:DialogExampleFragment.java   
@NonNull
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    Guidance guidance = new Guidance(getString(R.string.dialog_example_title),
            getString(R.string.dialog_example_description),
            "", null);
    return guidance;
}
项目:androidtv-Leanback    文件:GuidedStepActivity.java   
@Override
@NonNull
public Guidance onCreateGuidance(@NonNull Bundle savedInstanceState) {
    String title = getString(R.string.guidedstep_first_title);
    String breadcrumb = getString(R.string.guidedstep_first_breadcrumb);
    String description = getString(R.string.guidedstep_first_description);
    Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon);
    return new Guidance(title, description, breadcrumb, icon);
}
项目:androidtv-Leanback    文件:GuidedStepActivity.java   
@Override
@NonNull
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.guidedstep_second_title);
    String breadcrumb = getString(R.string.guidedstep_second_breadcrumb);
    String description = getString(R.string.guidedstep_second_description);
    Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon);
    return new Guidance(title, description, breadcrumb, icon);
}
项目:androidtv-Leanback    文件:GuidedStepActivity.java   
@Override
@NonNull
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.guidedstep_third_title);
    String breadcrumb = getString(R.string.guidedstep_third_breadcrumb);
    String description = getString(R.string.guidedstep_third_command)
            + OPTION_NAMES[getArguments().getInt(ARG_OPTION_IDX)];
    Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon);
    return new Guidance(title, description, breadcrumb, icon);
}
项目:BuildingForAndroidTV    文件:GuidedStepActivity.java   
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.guidedstep_first_title);
    String breadcrumb = getString(R.string.guidedstep_first_breadcrumb);
    String description = getString(R.string.guidedstep_first_description);
    Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon);
    return new Guidance(title, description, breadcrumb, icon);
}
项目:BuildingForAndroidTV    文件:GuidedStepActivity.java   
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.guidedstep_second_title);
    String breadcrumb = getString(R.string.guidedstep_second_breadcrumb);
    String description = getString(R.string.guidedstep_second_description);
    Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon);
    return new Guidance(title, description, breadcrumb, icon);
}
项目:BuildingForAndroidTV    文件:GuidedStepActivity.java   
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getString(R.string.guidedstep_third_title);
    String breadcrumb = getString(R.string.guidedstep_third_breadcrumb);
    String description = getString(R.string.guidedstep_third_command)
            + OPTION_NAMES[mOption];
    Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon);
    return new Guidance(title, description, breadcrumb, icon);
}
项目:chilly    文件:ListSelectActivity.java   
@Override
@NonNull
public Guidance onCreateGuidance(@NonNull Bundle savedInstanceState) {
    Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon);
    return new Guidance(title, subtitle, "", null);
}
项目:android_packages_apps_tv    文件:DvrChannelRecordDurationOptionFragment.java   
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String title = getResources().getString(R.string.dvr_channel_record_duration_dialog_title);
    Drawable icon = getResources().getDrawable(R.drawable.ic_dvr, null);
    return new Guidance(title, null, null, icon);
}
项目:android_packages_apps_tv    文件:SeriesSettingsFragment.java   
@Override
public Guidance onCreateGuidance(Bundle savedInstanceState) {
    String breadcrumb = mSeriesRecording.getTitle();
    String title = mFragmentTitle;
    return new Guidance(title, null, breadcrumb, null);
}