本文整理匯總了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());
}