Enable reveal animation (Only for Lollipop and above)
fadeinTextDuration(long)
Fade in animation duration for spotlight text (Heading and Sub-heading)
headingTvSize(int)
Size of heading text
headingTvColor(int)
Color of heading text
headingTvText(CharSequence)
Text to display in heading
subHeadingTvSize(int)
Size of sub-heading text
subHeadingTvColor(int)
Color of sub-heading text
subHeadingTvText(CharSequence)
Text to display in sub-heading
setTypeface(Typeface)
Custom font for text in spotlight view
lineAndArcColor(int)
Color of the spotlight line
lineAnimDuration(long)
Line animation duration
performClick(boolean)
Perform a click on target view
usageId(String)
Unique id for each spotlight
dismissOnTouch(boolean)
Dismiss spotlight on touch outside
enableDismissAfterShown(boolean)
Dismiss spotlight on touch outside after spotlight is completely visible
Configuration Method
//Create global config instance to reuse itSpotlightConfig config = new SpotlightConfig();
config.isDismissOnTouch(true);
config.setLineAndArcColor(0xFFFFFFFF);....setConfiguration(config)