當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。