本文整理汇总了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());
}
示例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());
}