Last active
September 19, 2016 08:43
-
-
Save bezmian/c76bee69f9726b09e2f14097f814a50f to your computer and use it in GitHub Desktop.
addSlide
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void onCreate(@Nullable Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
addSlide(new SlideFragmentBuilder() | |
.backgroundColor(R.color.colorPrimary) | |
.buttonsColor(R.color.colorAccent) | |
.possiblePermissions(new String[]{Manifest.permission.CALL_PHONE, Manifest.permission.READ_SMS}) | |
.neededPermissions(new String[]{Manifest.permission.CAMERA, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION}) | |
.image(agency.tango.materialintroscreen.R.drawable.ic_next) | |
.title("title 3") | |
.description("Description 3") | |
.build(), | |
new MessageButtonBehaviour(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
Toast.makeText(IntroActivity.this, "We provide solutions to make you love your work", Toast.LENGTH_SHORT).show(); | |
} | |
}, "Work with love")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment