当前位置: 首页>>代码示例>>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;未经允许,请勿转载。