|
compile 'za.co.riggaroo:materialhelptutorial:1.0.1' |
public
void
loadTutorial() {
Intent mainAct =
new
Intent(
this
, MaterialTutorialActivity.
class
);
mainAct.putParcelableArrayListExtra(MaterialTutorialActivity.MATERIAL_TUTORIAL_ARG_TUTORIAL_ITEMS, getTutorialItems(
this
));
startActivityForResult(mainAct, REQUEST_CODE);
}
private
ArrayList<TutorialItem> getTutorialItems(Context context) {
TutorialItem tutorialItem1 =
new
TutorialItem(context.getString(R.string.slide_1_african_story_books), context.getString(R.string.slide_1_african_story_books_subtitle),
R.color.slide_1, R.drawable.tut_page_1_front, R.drawable.tut_page_1_background);
...
ArrayList<TutorialItem> tutorialItems =
new
ArrayList<>();
tutorialItems.add(tutorialItem1);
...
return
tutorialItems;
}
热门源码