当前位置: 首页>>代码示例>>Java>>正文


Java TitlePage类代码示例

本文整理汇总了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();
}
 
开发者ID:othreecodes,项目名称:WaJeun,代码行数:36,代码来源:WelcomeActivity.java

示例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();
}
 
开发者ID:stephentuso,项目名称:welcome-android,代码行数:13,代码来源:ButtonBarWelcomeActivity.java

示例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();
}
 
开发者ID:stephentuso,项目名称:welcome-android,代码行数:16,代码来源:LightWelcomeActivity.java

示例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();
}
 
开发者ID:stephentuso,项目名称:welcome-android,代码行数:16,代码来源:PreviousButtonWelcomeActivity.java

示例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();
}
 
开发者ID:stephentuso,项目名称:welcome-android,代码行数:10,代码来源:DefaultWelcomeActivity.java

示例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();
}
 
开发者ID:stephentuso,项目名称:welcome-android,代码行数:14,代码来源:IndicatorOnlyWelcomeActivity.java

示例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();
}
 
开发者ID:stephentuso,项目名称:welcome-android,代码行数:13,代码来源:ButtonBarSingleWelcomeActivity.java

示例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();
}
 
开发者ID:stephentuso,项目名称:welcome-android,代码行数:15,代码来源:IncludedPagesWelcomeActivity.java


注:本文中的com.stephentuso.welcome.TitlePage类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。