本文整理匯總了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();
}