Java源码示例:com.heinrichreimersoftware.materialintro.slide.SimpleSlide
示例1
private void addIntroSlide() {
addSlide(new SimpleSlide.Builder()
.layout(R.layout.fragment_intro)
.title(R.string.intro_welcome_title)
.description(R.string.intro_welcome_desc)
.image(R.drawable.intro_welcome)
.background(R.color.colorPrimary)
.backgroundDark(R.color.colorPrimaryDark)
.canGoBackward(true)
.buttonCtaLabel(R.string.intro_get_started_button)
.buttonCtaClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
nextSlide();
}
})
.build());
}
示例2
private void addStartServiceSlide() {
SimpleSlide startServiceSlide = new SimpleSlide.Builder()
.layout(R.layout.fragment_intro)
.title(R.string.intro_start_service_title)
.description(R.string.intro_start_service_desc)
.image(R.drawable.intro_check)
.background(R.color.colorAccent)
.backgroundDark(R.color.colorAccentDark)
.canGoForward(true)
.buttonCtaLabel(R.string.start_service)
.buttonCtaClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startService(new Intent(AppIntroActivity.this, NLService.class));
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
preferences.edit().putBoolean(getString(R.string.notification_listener_service_state_key), true).apply();
NLService.setEnabled(true);
nextSlide();
}
})
.build();
addSlide(startServiceSlide);
}
示例3
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setButtonCtaVisible(true);
setButtonNextVisible(false);
setButtonBackVisible(false);
setButtonCtaTintMode(BUTTON_CTA_TINT_MODE_TEXT);
addSlide(new SimpleSlide.Builder()
.title(R.string.main_activity_name)
.description(R.string.welcome_to_music_app)
.image(R.drawable.icon_web)
.background(R.color.md_grey_300)
.backgroundDark(R.color.md_grey_700)
.layout(R.layout.fragment_simple_slide_large_image)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.label_view_playing_queue)
.description(R.string.open_playing_queue_instruction)
.image(R.drawable.tutorial_queue_swipe_up)
.background(R.color.md_cyan_700)
.backgroundDark(R.color.md_cyan_900)
.layout(R.layout.fragment_simple_slide_large_image)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.label_edit_playing_queue)
.description(R.string.rearrange_playing_queue_instruction)
.image(R.drawable.tutorial_rearrange_queue)
.background(R.color.md_deep_orange_700)
.backgroundDark(R.color.md_deep_orange_900)
.layout(R.layout.fragment_simple_slide_large_image)
.build());
}
示例4
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setButtonCtaVisible(true);
setButtonNextVisible(false);
setButtonBackVisible(false);
setButtonCtaTintMode(BUTTON_CTA_TINT_MODE_TEXT);
addSlide(new SimpleSlide.Builder()
.title(R.string.app_name)
.description(R.string.welcome_to_Ọrin)
.image(R.drawable.icon_web)
.background(R.color.md_blue_grey_100)
.backgroundDark(R.color.md_blue_grey_200)
.layout(R.layout.fragment_simple_slide_large_image)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.label_playing_queue)
.description(R.string.open_playing_queue_instruction)
.image(R.drawable.tutorial_queue_swipe_up)
.background(R.color.md_deep_purple_500)
.backgroundDark(R.color.md_deep_purple_600)
.layout(R.layout.fragment_simple_slide_large_image)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.label_playing_queue)
.description(R.string.rearrange_playing_queue_instruction)
.image(R.drawable.tutorial_rearrange_queue)
.background(R.color.md_indigo_500)
.backgroundDark(R.color.md_indigo_600)
.layout(R.layout.fragment_simple_slide_large_image)
.build());
}
示例5
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setButtonCtaVisible(false);
setButtonNextVisible(false);
setButtonBackVisible(false);
setButtonCtaTintMode(BUTTON_CTA_TINT_MODE_TEXT);
String title = String.format(getString(R.string.saf_guide_slide1_title), getString(R.string.app_name));
addSlide(new SimpleSlide.Builder()
.title(title)
.description(Build.VERSION.SDK_INT <= Build.VERSION_CODES.N_MR1 ? R.string.saf_guide_slide1_description_before_o : R.string.saf_guide_slide1_description)
.image(R.drawable.saf_guide_1)
.background(R.color.md_indigo_300)
.backgroundDark(R.color.md_indigo_400)
.layout(R.layout.fragment_simple_slide_large_image)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.saf_guide_slide2_title)
.description(R.string.saf_guide_slide2_description)
.image(R.drawable.saf_guide_2)
.background(R.color.md_indigo_500)
.backgroundDark(R.color.md_indigo_600)
.layout(R.layout.fragment_simple_slide_large_image)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.saf_guide_slide3_title)
.description(R.string.saf_guide_slide3_description)
.image(R.drawable.saf_guide_3)
.background(R.color.md_indigo_700)
.backgroundDark(R.color.md_indigo_800)
.layout(R.layout.fragment_simple_slide_large_image)
.build());
}
示例6
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setButtonCtaVisible(true);
setButtonNextVisible(false);
setButtonBackVisible(false);
setButtonCtaTintMode(BUTTON_CTA_TINT_MODE_TEXT);
addSlide(new SimpleSlide.Builder()
.title(R.string.app_name)
.description(R.string.welcome_to_vinyl_music_player)
.image(R.drawable.icon_web)
.background(R.color.md_blue_grey_100)
.backgroundDark(R.color.md_blue_grey_200)
.layout(R.layout.fragment_simple_slide_large_image)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.label_playing_queue)
.description(R.string.open_playing_queue_instruction)
.image(R.drawable.tutorial_queue_swipe_up)
.background(R.color.md_deep_purple_500)
.backgroundDark(R.color.md_deep_purple_600)
.layout(R.layout.fragment_simple_slide_large_image)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.label_playing_queue)
.description(R.string.rearrange_playing_queue_instruction)
.image(R.drawable.tutorial_rearrange_queue)
.background(R.color.md_indigo_500)
.backgroundDark(R.color.md_indigo_600)
.layout(R.layout.fragment_simple_slide_large_image)
.build());
}
示例7
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setButtonBackVisible(false);
setButtonNextVisible(false);
setButtonCtaVisible(true);
setButtonCtaTintMode(BUTTON_CTA_TINT_MODE_TEXT);
addSlide(new SimpleSlide.Builder()
.title(R.string.title_material_metaphor)
.description(R.string.description_material_metaphor)
.image(R.drawable.art_material_metaphor)
.background(R.color.color_material_metaphor)
.backgroundDark(R.color.color_dark_material_metaphor)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.title_material_bold)
.description(R.string.description_material_bold)
.image(R.drawable.art_material_bold)
.background(R.color.color_material_bold)
.backgroundDark(R.color.color_dark_material_bold)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.title_material_motion)
.description(R.string.description_material_motion)
.image(R.drawable.art_material_motion)
.background(R.color.color_material_motion)
.backgroundDark(R.color.color_dark_material_motion)
.build());
}
示例8
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setButtonCtaVisible(true);
setButtonNextVisible(false);
setButtonBackVisible(false);
setButtonCtaTintMode(BUTTON_CTA_TINT_MODE_TEXT);
addSlide(new SimpleSlide.Builder()
.title(R.string.app_name)
.description(R.string.welcome_to_phonograph)
.image(R.drawable.icon_web)
.background(R.color.md_blue_grey_100)
.backgroundDark(R.color.md_blue_grey_200)
.layout(R.layout.fragment_simple_slide_large_image)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.label_playing_queue)
.description(R.string.open_playing_queue_instruction)
.image(R.drawable.tutorial_queue_swipe_up)
.background(R.color.md_deep_purple_500)
.backgroundDark(R.color.md_deep_purple_600)
.layout(R.layout.fragment_simple_slide_large_image)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.label_playing_queue)
.description(R.string.rearrange_playing_queue_instruction)
.image(R.drawable.tutorial_rearrange_queue)
.background(R.color.md_indigo_500)
.backgroundDark(R.color.md_indigo_600)
.layout(R.layout.fragment_simple_slide_large_image)
.build());
}
示例9
private void addDemoSlide() {
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
final boolean dismissPlaceholderNotif = preferences.getBoolean(
getString(R.string.dismiss_placeholder_notif_key), false);
final int placeholderNotifDismissDelayMillis = preferences.getInt(
getString(R.string.placeholder_dismiss_delay_key), Constants.DEFAULT_DELAY_SECONDS)
*1000;
final Handler handler = new Handler();
// Demo
addSlide(new SimpleSlide.Builder()
.layout(R.layout.fragment_intro)
.title(R.string.intro_done_title)
.description(R.string.intro_done_desc)
.image(R.drawable.intro_done)
.background(R.color.colorAccent)
.backgroundDark(R.color.colorAccentDark)
.buttonCtaLabel(R.string.test_notification)
.buttonCtaClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Bundle newExtra = new Bundle();
NotificationCompat.Builder builder = new NotificationCompat.Builder(AppIntroActivity.this);
String notificationText = "Sample notification subject";
String notificationBigText = "Sample notification body. This is where the details of the notification will be shown.";
StringBuilder sb = new StringBuilder();
sb.append("[").append("example").append("] ");
sb.append(notificationText);
if (notificationBigText.length() > 0) {
sb.append(" -- ").append(notificationBigText);
}
RemoteViews contentView = new RemoteViews(getPackageName(), R.layout.custom_notification);
contentView.setTextViewText(R.id.customNotificationText, getString(R.string.placeholder_notification_text));
builder.setSmallIcon(R.drawable.ic_sms_white_24dp)
.setContentText(sb.toString())
.setExtras(newExtra)
.setContentTitle("Sample Notification Title")
.setContent(contentView);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
builder.setChannelId(Constants.NOTIFICATION_CHANNEL_ID);
}
// Creates an explicit intent for the SettingsActivity in the app
Intent settingsIntent = new Intent(AppIntroActivity.this, SettingsActivity.class);
// The stack builder object will contain an artificial back stack for the
// started Activity.
// This ensures that navigating backward from the Activity leads out of
// the application to the Home screen.
TaskStackBuilder stackBuilder = TaskStackBuilder.create(AppIntroActivity.this);
// Adds the back stack for the Intent (but not the Intent itself)
stackBuilder.addParentStack(SettingsActivity.class);
// Adds the Intent that starts the Activity to the top of the stack
stackBuilder.addNextIntent(settingsIntent);
PendingIntent settingsPendingIntent =
stackBuilder.getPendingIntent(
0,
PendingIntent.FLAG_UPDATE_CURRENT
);
builder.setContentIntent(settingsPendingIntent).setAutoCancel(true);
((NotificationManager) getSystemService(NOTIFICATION_SERVICE))
.notify(NOTIFICATION_ID, builder.build());
Toast.makeText(AppIntroActivity.this, getString(R.string.test_notification_sent), Toast.LENGTH_LONG)
.show();
if (dismissPlaceholderNotif) {
handler.postDelayed(new Runnable() {
@Override
public void run() {
((NotificationManager) getSystemService(NOTIFICATION_SERVICE))
.cancel(NOTIFICATION_ID);
}
}, placeholderNotifDismissDelayMillis);
}
}
})
.build());
}
示例10
@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
LAUNCH_ACTIVITY_ANIM_BUNDLE = ActivityOptions.
makeCustomAnimation(AppIntroActivity.this,
R.transition.left_in,
R.transition.left_out).toBundle();
mPackageManager = getPackageManager();
boolean setupDone = PreferenceManager.getDefaultSharedPreferences(this).getBoolean(getString(R.string.done_first_launch_key), false);
if (setupDone) { // Setup already finished once. So, this is repeat setup
new AlertDialog.Builder(AppIntroActivity.this)
.setTitle(getString(R.string.intro_setup_issues_title))
.setMessage(getString(R.string.intro_setup_issues_message))
.setPositiveButton(R.string.intro_setup_issues_ok, null)
.create()
.show();
}
// Introduction slide
addIntroSlide();
// Fitbit install slide
addFitbitInstallSlide();
// Enable notifications slide
addEnableNotificationAccessSlide();
// Fitbit setup - 3 steps (3 slides)
// Step 1
addSlide(new SimpleSlide.Builder()
.layout(R.layout.fragment_intro)
.title(R.string.intro_setup_fitbit_title1)
.description(R.string.intro_setup_fitbit_desc1)
.image(R.drawable.step_one)
.background(R.color.fitbitColor_intro)
.backgroundDark(R.color.fitbitColorDark_intro)
.build());
// Step 2
addSlide(new SimpleSlide.Builder()
.layout(R.layout.fragment_intro)
.title(R.string.intro_setup_fitbit_title2)
.description(R.string.intro_setup_fitbit_desc2)
.image(R.drawable.step_two)
.background(R.color.fitbitColor_intro)
.backgroundDark(R.color.fitbitColorDark_intro)
.build());
// Step 3
mLaunchFitbitSlide = createLaunchFitbitSlide();
addSlide(mLaunchFitbitSlide);
// App Choices slide
mAppChoicesSlide = createAppChoicesSlide();
addSlide(mAppChoicesSlide);
// Start service
addStartServiceSlide();
// Do not disturb mode announcement slide
addDNDModeSlide();
// Demo Slide
addDemoSlide();
setButtonBackVisible(true);
setButtonBackFunction(BUTTON_BACK_FUNCTION_BACK);
setButtonNextVisible(true);
setButtonNextFunction(BUTTON_NEXT_FUNCTION_NEXT_FINISH);
}
示例11
@Override
protected void onCreate(Bundle savedInstanceState) {
Intent intent = getIntent();
boolean customFragments = intent.getBooleanExtra(EXTRA_CUSTOM_FRAGMENTS, true);
boolean permissions = intent.getBooleanExtra(EXTRA_PERMISSIONS, true);
boolean showBack = intent.getBooleanExtra(EXTRA_SHOW_BACK, true);
boolean showNext = intent.getBooleanExtra(EXTRA_SHOW_NEXT, true);
boolean skipEnabled = intent.getBooleanExtra(EXTRA_SKIP_ENABLED, false);
boolean finishEnabled = intent.getBooleanExtra(EXTRA_FINISH_ENABLED, true);
boolean getStartedEnabled = intent.getBooleanExtra(EXTRA_GET_STARTED_ENABLED, false);
setFullscreen(false);
super.onCreate(savedInstanceState);
setButtonBackFunction(skipEnabled ? BUTTON_BACK_FUNCTION_SKIP : BUTTON_BACK_FUNCTION_BACK);
setButtonNextFunction(finishEnabled ? BUTTON_NEXT_FUNCTION_NEXT_FINISH : BUTTON_NEXT_FUNCTION_NEXT);
setButtonBackVisible(showBack);
setButtonNextVisible(showNext);
setButtonCtaVisible(getStartedEnabled);
setButtonCtaTintMode(BUTTON_CTA_TINT_MODE_TEXT);
addSlide(new SimpleSlide.Builder()
.title(R.string.introSlide1Title)
.description(R.string.introSlide1Text)
.image(R.drawable.web_hi_res_512)
.background(R.color.launcher_background)
.backgroundDark(R.color.launcher_background)
.scrollable(true)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.introSlide2Title)
.description(R.string.introSlide2Text)
.image(R.drawable.bench_hi_res_512)
.background(R.color.launcher_background)
.backgroundDark(R.color.launcher_background)
.scrollable(true)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.titleSlideEssential)
.description(R.string.textSlideEssential)
.image(R.drawable.idea_hi_res_485)
.background(R.color.launcher_background)
.backgroundDark(R.color.launcher_background)
.scrollable(true)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.titleSlideOpenSource)
.description(R.string.textSlideOpenSource)
.image(R.drawable.group_hi_res_512)
.background(R.color.launcher_background)
.backgroundDark(R.color.launcher_background)
.scrollable(true)
.build());
/*
final Slide permissionsSlide;
if (permissions) {
permissionsSlide = new SimpleSlide.Builder()
.title(R.string.introSlide3Title)
.description(R.string.introSlide3Text)
.image(R.drawable.ic_settings_black_48dp)
.background(R.color.tableheader_background)
.backgroundDark(R.color.background_odd)
.scrollable(true)
.permissions(new String[]{Manifest.permission.CAMERA,
Manifest.permission.WRITE_EXTERNAL_STORAGE})
.build();
addSlide(permissionsSlide);
} else {
permissionsSlide = null;
}
*/
// Initialisation des objets DB
DAOProfile mDbProfils = new DAOProfile(this.getApplicationContext());
// Pour la base de donnee profil, il faut toujours qu'il y ai au moins un profil
if (mDbProfils.getCount() == 0) {
final Slide profileSlide;
// Ouvre la fenetre de creation de profil
profileSlide = new FragmentSlide.Builder()
.background(R.color.launcher_background)
.backgroundDark(R.color.launcher_background)
.fragment(NewProfileFragment.newInstance())
.build();
addSlide(profileSlide);
}
}
示例12
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Dagger.getGraph(this)
.activityGraph(new ActivityModule(this))
.inject(this);
setButtonBackVisible(false);
setButtonNextVisible(false);
setButtonCtaVisible(true);
addSlide(new SimpleSlide.Builder()
.layout(R.layout.slide_onboarding)
.title(R.string.intro_title_prayer)
.description(R.string.intro_description_prayer)
.image(R.drawable.intro_prayer)
.background(R.color.colorPrimary)
.backgroundDark(R.color.colorPrimaryDark)
.build());
addSlide(new SimpleSlide.Builder()
.layout(R.layout.slide_onboarding)
.title(R.string.intro_title_mosque)
.description(R.string.intro_description_mosque)
.image(R.drawable.intro_mosque)
.background(R.color.colorPrimary)
.backgroundDark(R.color.colorPrimaryDark)
.permissions(new String[] {
Manifest.permission.ACCESS_COARSE_LOCATION,
Manifest.permission.ACCESS_FINE_LOCATION,
Manifest.permission.READ_EXTERNAL_STORAGE,
})
.build());
addSlide(new SimpleSlide.Builder()
.layout(R.layout.slide_onboarding)
.title(R.string.intro_title_qibla)
.description(R.string.intro_description_qibla)
.image(R.drawable.intro_qibla)
.background(R.color.colorPrimary)
.backgroundDark(R.color.colorPrimaryDark)
.build());
}
示例13
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setButtonBackVisible(false);
setButtonNextVisible(false);
setButtonCtaVisible(true);
setButtonCtaTintMode(BUTTON_CTA_TINT_MODE_BACKGROUND);
TypefaceSpan labelSpan = new TypefaceSpan(
Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP ? "sans-serif-medium" : "sans serif");
SpannableString label = SpannableString
.valueOf(getString(R.string.label_button_cta_canteen_intro));
label.setSpan(labelSpan, 0, label.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
setButtonCtaLabel(label);
setPageScrollDuration(500);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
setPageScrollInterpolator(android.R.interpolator.fast_out_slow_in);
}
addSlide(new SimpleSlide.Builder()
.title(R.string.title_canteen_intro1)
.description(R.string.description_canteen_intro1)
.image(R.drawable.art_canteen_intro1)
.background(R.color.color_canteen)
.backgroundDark(R.color.color_dark_canteen)
.layout(R.layout.slide_canteen)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.title_canteen_intro2)
.description(R.string.description_canteen_intro2)
.image(R.drawable.art_canteen_intro2)
.background(R.color.color_canteen)
.backgroundDark(R.color.color_dark_canteen)
.layout(R.layout.slide_canteen)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.title_canteen_intro3)
.description(R.string.description_canteen_intro3)
.image(R.drawable.art_canteen_intro3)
.background(R.color.color_canteen)
.backgroundDark(R.color.color_dark_canteen)
.layout(R.layout.slide_canteen)
.build());
autoplay(2500, INFINITE);
}
示例14
@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
addSlide(new SimpleSlide.Builder()
.title(R.string.title_intro_one)
// .description(R.string.description_1)
.image(R.drawable.onboarding_slide_one)
.background(R.color.colorPrimary)
.backgroundDark(R.color.colorPrimaryDark)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.title_intro_two)
.image(R.drawable.onboarding_slide_two)
.background(R.color.colorPrimary)
.backgroundDark(R.color.colorPrimaryDark)
.build());
addSlide(new SimpleSlide.Builder()
.title(R.string.title_intro_three)
.image(R.drawable.ic_puff)
.background(R.color.colorPrimary)
.backgroundDark(R.color.colorPrimaryDark)
.build());
setSkipEnabled(false);
setFullscreen(true);
setAllowFinish(false);
setRunWhenFinish(new Runnable() {
@Override
public void run() {
startActivity(new Intent(PuffIntroActivity.this, MainActivity.class));
PuffIntroActivity.this.finish();
}
});
/**
* Custom fragment slide
*/
// addSlide(new FragmentSlide.Builder()
// .background(R.color.background_2)
// .backgroundDark(R.color.background_dark_2)
// .fragment(R.layout.fragment_2, R.style.FragmentTheme)
// .build());
}
示例15
@Override
protected void onCreate(Bundle savedInstanceState) {
setFullscreen(true);
super.onCreate(savedInstanceState);
addSlide(new SimpleSlide.Builder().layout(R.layout.help_notes_1).background(R.color.schedule_help_background).backgroundDark(R.color.schedule_help_background_dark).build());
addSlide(new SimpleSlide.Builder().layout(R.layout.help_notes_2).background(R.color.schedule_help_background).backgroundDark(R.color.schedule_help_background_dark).build());
addSlide(new SimpleSlide.Builder().layout(R.layout.help_notes_3).background(R.color.schedule_help_background).backgroundDark(R.color.schedule_help_background_dark).build());
}
示例16
@Override
protected void onCreate(Bundle savedInstanceState) {
setFullscreen(true);
super.onCreate(savedInstanceState);
addSlide(new SimpleSlide.Builder().layout(R.layout.help_routines_1).background(R.color.schedule_help_background).backgroundDark(R.color.schedule_help_background_dark).build());
addSlide(new SimpleSlide.Builder().layout(R.layout.help_routines_2).background(R.color.schedule_help_background).backgroundDark(R.color.schedule_help_background_dark).build());
addSlide(new SimpleSlide.Builder().layout(R.layout.help_routines_3).background(R.color.schedule_help_background).backgroundDark(R.color.schedule_help_background_dark).build());
}
示例17
@Override
protected void onCreate(Bundle savedInstanceState) {
setFullscreen(true);
super.onCreate(savedInstanceState);
addSlide(new SimpleSlide.Builder().layout(R.layout.help_schedules_1).background(R.color.schedule_help_background).backgroundDark(R.color.schedule_help_background_dark).build());
addSlide(new SimpleSlide.Builder().layout(R.layout.help_schedules_2).background(R.color.schedule_help_background).backgroundDark(R.color.schedule_help_background_dark).build());
addSlide(new SimpleSlide.Builder().layout(R.layout.help_schedules_3).background(R.color.schedule_help_background).backgroundDark(R.color.schedule_help_background_dark).build());
}
示例18
@Override
protected void onCreate(Bundle savedInstanceState) {
setFullscreen(true);
super.onCreate(savedInstanceState);
addSlide(new SimpleSlide.Builder().layout(R.layout.help_plans_1).background(R.color.schedule_help_background).backgroundDark(R.color.schedule_help_background_dark).build());
addSlide(new SimpleSlide.Builder().layout(R.layout.help_plans_2).background(R.color.schedule_help_background).backgroundDark(R.color.schedule_help_background_dark).build());
addSlide(new SimpleSlide.Builder().layout(R.layout.help_plans_3).background(R.color.schedule_help_background).backgroundDark(R.color.schedule_help_background_dark).build());
}