Skip to content
Ruben Gees edited this page Sep 23, 2015 · 5 revisions

Specific implementation details for a Slide

Slide example

withTitle(String title) / withTitle(int titleResource)

Add a title to your Slide. If you call both withTitle() methods, the last one called is the one that will be used.

withDescription(String description) / withDescription(int descriptionResource)

Add a description to your Slide. You can either have a description or an Option. If you use both, the last called will be used. If you call both withDescription() methods, the last one called is the one that will be used.

withImage(int imageResource)

Add a image to your slide. It can be any of the through Drawable supported image types.

withColor(int color) / withColorResource(int colorResource)

Add a color to your Slide. It will be used as the background of the screen. If you call both withColor() methods, the last one called is the one that will be used.

withOption(Option option)

Add an Option to your Slide. See the Option wiki page for more info about that.

init(Context context, int position)

A method which is used internally to resolve resources. Don't call this method yourself.