本文整理汇总了Java中com.github.paolorotolo.appintro.model.SliderPage类的典型用法代码示例。如果您正苦于以下问题:Java SliderPage类的具体用法?Java SliderPage怎么用?Java SliderPage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SliderPage类属于com.github.paolorotolo.appintro.model包,在下文中一共展示了SliderPage类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
showSkipButton(false);
Intent intent = getIntent();
type = intent.getStringExtra(KEY_SWITCH_FRAGMENT);
uuid = intent.getStringExtra(KEY_UUID);
title = intent.getStringExtra(KEY_TITLE);
SliderPageFactory factory = new SliderPageFactory(this);
List<SliderPage> pages = factory.createSlidesFromType(type);
for (SliderPage page : pages) {
addSlide(AppIntroFragment.newInstance(page));
}
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:17,代码来源:IntroActivity.java
示例2: createSlidesFromType
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
public List<SliderPage> createSlidesFromType(String type) {
switch (type) {
case KEY_PREVIEW:
return createPreviewSlides();
case KEY_TODO_LIST:
return createTodoListSlides();
default:
throw new IllegalArgumentException(String.format("Type %s not supported", type));
}
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:11,代码来源:SliderPageFactory.java
示例3: createPreviewSlides
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
private List<SliderPage> createPreviewSlides() {
List<SliderPage> pages = new ArrayList<>(6);
pages.add(neuronizerIntroPage());
pages.add(addTodoListPage());
pages.add(addNotePage());
pages.add(swipeLeftPage());
pages.add(swipeRightPage());
pages.add(sortPreviewsPage());
return pages;
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:11,代码来源:SliderPageFactory.java
示例4: createTodoListSlides
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
private List<SliderPage> createTodoListSlides() {
List<SliderPage> pages = new ArrayList<>(6);
pages.add(addCategoryPage());
pages.add(addThoughtPage());
pages.add(checkItems());
pages.add(addWidgetsPage());
pages.add(dragDropPage());
pages.add(editCategory());
return pages;
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:11,代码来源:SliderPageFactory.java
示例5: createPageWith
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
private SliderPage createPageWith(@StringRes int title, @DrawableRes int drawable, @StringRes int description) {
SliderPage page = new SliderPage();
page.setTitle(context.getResources().getString(title));
page.setImageDrawable(drawable);
page.setDescription(context.getResources().getString(description));
page.setBgColor(context.getResources().getColor(R.color.colorPrimary));
page.setTitleTypeface(FONT_NAME_FULL);
return page;
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:11,代码来源:SliderPageFactory.java
示例6: onCreate
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
SliderPage sliderPage1 = new SliderPage();
sliderPage1.setTitle("Welcome!");
sliderPage1.setDescription("Channelize helps you channel your focus on the work and boost your productivity.");
sliderPage1.setImageDrawable(R.drawable.channelize);
sliderPage1.setBgColor(Color.parseColor("#388e3c"));
addSlide(AppIntroFragment.newInstance(sliderPage1));
SliderPage sliderPage2 = new SliderPage();
sliderPage2.setTitle("Plan your work");
sliderPage2.setDescription("Use the app's list to add your tasks and organize them. " +
"Tap on a task to start working on it.");
sliderPage2.setImageDrawable(R.drawable.intro1);
sliderPage2.setBgColor(Color.parseColor("#388e3c"));
addSlide(AppIntroFragment.newInstance(sliderPage2));
SliderPage sliderPage3 = new SliderPage();
sliderPage3.setTitle("Put full attention");
sliderPage3.setDescription("Break your tasks into focused work sessions, followed by regular breaks. " +
"You can change the timer durations in the settings.");
sliderPage3.setImageDrawable(R.drawable.intro2);
sliderPage3.setBgColor(Color.parseColor("#388e3c"));
addSlide(AppIntroFragment.newInstance(sliderPage3));
showStatusBar(false);
showSkipButton(false);
}
开发者ID:swapyx,项目名称:Channelize,代码行数:31,代码来源:IntroActivity.java
示例7: onCreate
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Random random = new Random();
switch (random.nextInt(4))
{
case 0:
setFadeAnimation();
break;
case 1:
setZoomAnimation();
break;
case 2:
setFlowAnimation();
break;
case 3:
setSlideOverAnimation();
break;
case 4:
setDepthAnimation();
break;
}
SliderPage sliderPage1 = new SliderPage();
sliderPage1.setTitle("Welcome!");
sliderPage1.setDescription("This is a demo of the AppIntro library, with a custom background on each slide!");
sliderPage1.setImageDrawable(R.mipmap.ic_launcher);
sliderPage1.setBgColor(Color.TRANSPARENT);
addSlide(AppIntroFragment.newInstance(sliderPage1));
SliderPage sliderPage2 = new SliderPage();
sliderPage2.setTitle("Clean App Intros");
sliderPage2.setDescription("This library offers developers the ability to add clean app intros at the start of their apps.");
sliderPage2.setImageDrawable(R.mipmap.ic_launcher);
sliderPage2.setBgColor(Color.TRANSPARENT);
addSlide(AppIntroFragment.newInstance(sliderPage2));
SliderPage sliderPage3 = new SliderPage();
sliderPage3.setTitle("Simple, yet Customizable");
sliderPage3.setDescription("The library offers a lot of customization, while keeping it simple for those that like simple.");
sliderPage3.setImageDrawable(R.mipmap.ic_launcher);
sliderPage3.setBgColor(Color.TRANSPARENT);
addSlide(AppIntroFragment.newInstance(sliderPage3));
SliderPage sliderPage4 = new SliderPage();
sliderPage4.setTitle("Explore");
sliderPage4.setDescription("Feel free to explore the rest of the library demo!");
sliderPage4.setImageDrawable(R.mipmap.ic_launcher);
sliderPage4.setBgColor(Color.TRANSPARENT);
addSlide(AppIntroFragment.newInstance(sliderPage4));
// Declare a new image view
ImageView imageView = new ImageView(this);
// Bind a drawable to the imageview
// imageView.setImageResource(R.mipmap.ic_launcher);
// Set background color
imageView.setBackgroundColor(Color.GRAY);
// Set layout params
imageView.setLayoutParams(new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
// Bind the background to the intro
setBackgroundView(imageView);
}
开发者ID:HitRoxxx,项目名称:FloatingNew,代码行数:71,代码来源:CustomBackgroundIntro.java
示例8: newInstance
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
public static IntroductionFragment newInstance(SliderPage sliderPage) {
IntroductionFragment slide = new IntroductionFragment();
Bundle args = new Bundle();
args.putString(ARG_TITLE, sliderPage.getTitleString());
args.putString(ARG_TITLE_TYPEFACE, sliderPage.getTitleTypeface());
args.putString(ARG_DESC, sliderPage.getDescriptionString());
args.putString(ARG_DESC_TYPEFACE, sliderPage.getDescTypeface());
args.putInt(ARG_CUSTOM_DRAWABLE, sliderPage.getImageDrawable());
args.putInt(ARG_BG_COLOR, sliderPage.getBgColor());
args.putInt(ARG_TITLE_COLOR, sliderPage.getTitleColor());
args.putInt(ARG_DESC_COLOR, sliderPage.getDescColor());
slide.setArguments(args);
return slide;
}
开发者ID:andreynovikov,项目名称:trekarta,代码行数:16,代码来源:IntroductionFragment.java
示例9: neuronizerIntroPage
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
private SliderPage neuronizerIntroPage() {
return createPageWith(R.string.welcome, R.mipmap.neuronizer, R.string.welcome_descr);
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:4,代码来源:SliderPageFactory.java
示例10: addTodoListPage
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
private SliderPage addTodoListPage() {
return createPageWith(R.string.add_todo_lists, R.drawable.ic_playlist_add_128dp, R.string.add_todo_lists_descr);
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:4,代码来源:SliderPageFactory.java
示例11: addNotePage
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
private SliderPage addNotePage() {
return createPageWith(R.string.add_notes, R.drawable.ic_note_add_128dp, R.string.add_notes_descr);
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:4,代码来源:SliderPageFactory.java
示例12: addWidgetsPage
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
private SliderPage addWidgetsPage() {
return createPageWith(R.string.add_widgets, R.mipmap.widget_preview, R.string.add_widgets_descr);
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:4,代码来源:SliderPageFactory.java
示例13: sortPreviewsPage
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
private SliderPage sortPreviewsPage() {
return createPageWith(R.string.sort, R.drawable.ic_sort_128dp, R.string.sort_descr);
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:4,代码来源:SliderPageFactory.java
示例14: addCategoryPage
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
private SliderPage addCategoryPage() {
return createPageWith(R.string.categorization, R.drawable.ic_create_new_folder_128dp, R.string.add_category_descr);
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:4,代码来源:SliderPageFactory.java
示例15: addThoughtPage
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
private SliderPage addThoughtPage() {
return createPageWith(R.string.add_items, R.drawable.ic_lightbulb_128dp, R.string.add_item_descr);
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:4,代码来源:SliderPageFactory.java
示例16: dragDropPage
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
private SliderPage dragDropPage() {
return createPageWith(R.string.drag_drop, R.drawable.ic_reorder_128dp, R.string.drag_drop_descr);
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:4,代码来源:SliderPageFactory.java
示例17: editCategory
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
private SliderPage editCategory() {
return createPageWith(R.string.edit_categories, R.drawable.ic_edit_128dp, R.string.edit_category_descr);
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:4,代码来源:SliderPageFactory.java
示例18: checkItems
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
private SliderPage checkItems() {
return createPageWith(R.string.check_items, R.drawable.ic_done_128dp, R.string.check_items_descr);
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:4,代码来源:SliderPageFactory.java
示例19: swipeLeftPage
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
private SliderPage swipeLeftPage() {
return createPageWith(R.string.swipe_left, R.drawable.ic_undo_128dp, R.string.swipe_left_descr);
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:4,代码来源:SliderPageFactory.java
示例20: swipeRightPage
import com.github.paolorotolo.appintro.model.SliderPage; //导入依赖的package包/类
private SliderPage swipeRightPage() {
return createPageWith(R.string.swipe_right, R.drawable.ic_redo_128dp, R.string.swipe_right_descr);
}
开发者ID:djuelg,项目名称:Neuronizer,代码行数:4,代码来源:SliderPageFactory.java
注:本文中的com.github.paolorotolo.appintro.model.SliderPage类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论