當前位置: 首頁>>代碼示例>>Java>>正文


Java SlideFragmentBuilder類代碼示例

本文整理匯總了Java中agency.tango.materialintroscreen.SlideFragmentBuilder的典型用法代碼示例。如果您正苦於以下問題:Java SlideFragmentBuilder類的具體用法?Java SlideFragmentBuilder怎麽用?Java SlideFragmentBuilder使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


SlideFragmentBuilder類屬於agency.tango.materialintroscreen包,在下文中一共展示了SlideFragmentBuilder類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onCreate

import agency.tango.materialintroscreen.SlideFragmentBuilder; //導入依賴的package包/類
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    addSlide(new SlideFragmentBuilder()
            .backgroundColor(R.color.primary)
            .buttonsColor(R.color.accent)
            .title(getString(R.string.tutorial_version_title))
            .description(getString(R.string.tutorial_version_desc))
            .image(R.drawable.version)
            .build());

    addSlide(new SlideFragmentBuilder()
            .backgroundColor(R.color.primary)
            .buttonsColor(R.color.accent)
            .title(getString(R.string.tutorial_play_store_title))
            .description(getString(R.string.tutorial_play_store_desc))
            .image(R.drawable.playstore)
            .build());

    addSlide(new SlideFragmentBuilder()
            .backgroundColor(R.color.primary)
            .buttonsColor(R.color.accent)
            .title(getString(R.string.tutorial_search_title))
            .description(getString(R.string.tutorial_search_desc))
            .image(R.drawable.search)
            .build());

    addSlide(new SlideFragmentBuilder()
            .backgroundColor(R.color.primary)
            .buttonsColor(R.color.accent)
            .title(getString(R.string.tutorial_install_title))
            .description(getString(R.string.tutorial_install_desc))
            .image(R.drawable.install)
            .build());

    addSlide(new UninstallSlide());
}
 
開發者ID:Nxt3,項目名稱:IO_Classic_WatchFace,代碼行數:39,代碼來源:TutorialActivity.java

示例2: onCreate

import agency.tango.materialintroscreen.SlideFragmentBuilder; //導入依賴的package包/類
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    verifyIntroActivity();
    addSlide(
            new SlideFragmentBuilder()
                    .backgroundColor(R.color.slide_1)
                    .buttonsColor(R.color.slide_button)
                    .title(getResources().getString(R.string.slide_1_title))
                    .description(getResources().getString(R.string.slide_1_description))
                    .image(R.mipmap.ic_launcher)
                    .build()

    );

    String[] neededPermissons = new String[]{
            Manifest.permission.ACCESS_COARSE_LOCATION,
            Manifest.permission.ACCESS_FINE_LOCATION
    };
    addSlide(
            new SlideFragmentBuilder()
                    .backgroundColor(R.color.slide_2)
                    .buttonsColor(R.color.slide_button)
                    .title(getResources().getString(R.string.slide_2_title))
                    .description(getResources().getString(R.string.slide_2_description))
                    .image(R.mipmap.ic_launcher)
                    .neededPermissions(neededPermissons)
                    .build()

    );

    addSlide(new TermsConditionsSlideFragment());

}
 
開發者ID:gabriel-silva,項目名稱:MapaDeIgarassu,代碼行數:36,代碼來源:IntroActivity.java


注:本文中的agency.tango.materialintroscreen.SlideFragmentBuilder類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。