本文整理汇总了Java中com.stephentuso.welcome.TitlePage类的典型用法代码示例。如果您正苦于以下问题:Java TitlePage类的具体用法?Java TitlePage怎么用?Java TitlePage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TitlePage类属于com.stephentuso.welcome包,在下文中一共展示了TitlePage类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configuration
import com.stephentuso.welcome.TitlePage; //导入依赖的package包/类
@Override
protected WelcomeConfiguration configuration() {
return new WelcomeConfiguration.Builder(this)
.defaultBackgroundColor(R.color.bckg)
.page(new TitlePage(R.drawable.chowtrans,
"Welcome To Chow !")
.parallax(true)
)
.page(new BasicPage(R.drawable.ic_bell,
"Header",
"More text.")
.background(R.color.accent)
.parallax(true)
)
.page(new BasicPage(R.drawable.ic_analytics,
"Lorem ipsum",
"dolor sit amet.")
.parallax(true)
).page(new BasicPage(R.drawable.ic_street_view,
"Lorem ipsum",
"dolor sit amet.")
.parallax(true)
.background(R.color.accent)
)
.swipeToDismiss(true)
.canSkip(false)
.bottomLayout(WelcomeConfiguration.BottomLayout.STANDARD_DONE_IMAGE)
.showPrevButton(true)
.animateButtons(true)
.showNextButton(true)
.exitAnimation(android.R.anim.fade_out)
.build();
}
示例2: configuration
import com.stephentuso.welcome.TitlePage; //导入依赖的package包/类
@Override
protected WelcomeConfiguration configuration() {
return new WelcomeConfiguration.Builder(this)
.canSkip(false)
.backButtonNavigatesPages(false)
.defaultTitleTypefacePath("Roboto-Bold.ttf")
.defaultHeaderTypefacePath("Roboto-Bold.ttf")
.bottomLayout(WelcomeConfiguration.BottomLayout.BUTTON_BAR)
.page(new TitlePage(R.drawable.ic_image_white, "Title Page"))
.page(new BasicPage(R.drawable.ic_image_white, "Basic Page", "A page with a title and description").background(R.color.purple_background))
.build();
}
示例3: configuration
import com.stephentuso.welcome.TitlePage; //导入依赖的package包/类
@Override
protected WelcomeConfiguration configuration() {
return new WelcomeConfiguration.Builder(this)
.defaultBackgroundColor(new BackgroundColor(Color.WHITE))
.defaultTitleTypefacePath("Roboto-Bold.ttf")
.defaultHeaderTypefacePath("Roboto-Bold.ttf")
.page(new TitlePage(R.drawable.ic_style_blue, "Light Theme")
.titleColorResource(this, R.color.colorAccent))
.page(new BasicPage(R.drawable.ic_brush_blue, "Easy styling",
"All colors can be customized with styles")
.headerColorResource(this, R.color.colorAccent))
.swipeToDismiss(true)
.exitAnimation(android.R.anim.fade_out)
.build();
}
示例4: configuration
import com.stephentuso.welcome.TitlePage; //导入依赖的package包/类
@Override
protected WelcomeConfiguration configuration() {
return new WelcomeConfiguration.Builder(this)
.defaultBackgroundColor(R.color.colorPrimary)
.showPrevButton(true)
.backButtonNavigatesPages(false)
.defaultTitleTypefacePath("Roboto-Bold.ttf")
.defaultHeaderTypefacePath("Roboto-Bold.ttf")
.showActionBarBackButton(true)
.page(new TitlePage(R.drawable.ic_image_white, "Title Page"))
.page(new BasicPage(R.drawable.ic_image_white, "Basic Page", "A page with a title and description").background(R.color.purple_background))
.page(new ParallaxPage(R.layout.parallax_example_two, "Parallax page", "Applies a parallax effect and has a title and description").background(R.color.red_background))
.page(new FullscreenParallaxPage(R.layout.parallax_example_fullscreen).background(R.color.orange_background))
.build();
}
示例5: configuration
import com.stephentuso.welcome.TitlePage; //导入依赖的package包/类
@Override
protected WelcomeConfiguration configuration() {
return new WelcomeConfiguration.Builder(this)
.defaultBackgroundColor(R.color.colorPrimary)
.page(new TitlePage(R.drawable.ic_image_white, "Default Welcome Screen"))
.page(new BasicPage(R.drawable.ic_style_white, "Default style", "No custom styles are applied to this welcome screen"))
.page(new BasicPage(R.drawable.ic_image_white, "Default properties", "No properties were set on the WelcomeScreenBuilder"))
.build();
}
示例6: configuration
import com.stephentuso.welcome.TitlePage; //导入依赖的package包/类
@Override
protected WelcomeConfiguration configuration() {
return new WelcomeConfiguration.Builder(this)
.swipeToDismiss(true)
.backButtonNavigatesPages(false)
.defaultTitleTypefacePath("Roboto-Bold.ttf")
.defaultHeaderTypefacePath("Roboto-Bold.ttf")
.bottomLayout(WelcomeConfiguration.BottomLayout.INDICATOR_ONLY)
.page(new TitlePage(R.drawable.ic_image_white, "Title Page"))
.page(new BasicPage(R.drawable.ic_image_white, "Basic Page", "A page with a title and description").background(R.color.purple_background))
.page(new BasicPage(R.drawable.ic_image_white, "Basic Page", "A page with a title and description").background(R.color.red_background))
.build();
}
示例7: configuration
import com.stephentuso.welcome.TitlePage; //导入依赖的package包/类
@Override
protected WelcomeConfiguration configuration() {
return new WelcomeConfiguration.Builder(this)
.swipeToDismiss(true)
.defaultTitleTypefacePath("Roboto-Bold.ttf")
.defaultHeaderTypefacePath("Roboto-Bold.ttf")
.bottomLayout(WelcomeConfiguration.BottomLayout.BUTTON_BAR_SINGLE)
.exitAnimation(android.R.anim.fade_out)
.page(new TitlePage(R.drawable.ic_image_white, "Title Page"))
.page(new BasicPage(R.drawable.ic_image_white, "Basic Page", "A page with a title and description").background(R.color.purple_background))
.build();
}
示例8: configuration
import com.stephentuso.welcome.TitlePage; //导入依赖的package包/类
@Override
protected WelcomeConfiguration configuration() {
return new WelcomeConfiguration.Builder(this)
.defaultBackgroundColor(R.color.colorPrimary)
.swipeToDismiss(true)
.defaultTitleTypefacePath("Roboto-Bold.ttf")
.defaultHeaderTypefacePath("Roboto-Bold.ttf")
.bottomLayout(WelcomeConfiguration.BottomLayout.STANDARD_DONE_IMAGE)
.page(new TitlePage(R.drawable.ic_image_white, "Title Page"))
.page(new BasicPage(R.drawable.ic_image_white, "Basic Page", "A page with a title and description").background(R.color.purple_background))
.page(new ParallaxPage(R.layout.parallax_example_two, "Parallax page", "Applies a parallax effect and has a title and description").background(R.color.red_background))
.page(new FullscreenParallaxPage(R.layout.parallax_example_fullscreen).background(R.color.orange_background))
.build();
}