Skip to content
This repository was archived by the owner on Apr 24, 2018. It is now read-only.

Commit 9903e52

Browse files
committed
Example of ViewTarget
1 parent 4dcb9bd commit 9903e52

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ To use ShowcaseView, use one of the `insertShowcaseView(..)` calls. These take:
3636
- *Optional* title and detail strings (or resource ids) which show on the ShowcaseView
3737
- *Optional* a [`ConfigOptions`]() which can alter the behaviour of ShowcaseView. See the wiki for more details
3838

39+
As an example:
40+
41+
`View showcasedView = findViewById(R.id.view_to_showcase);
42+
ViewTarget target = new ViewTarget(showcasedView);
43+
ShowcaseView.insertShowcaseView(target, this, R.string.showcase_title, R.string.showcase_details);`
44+
3945
Copyright and Licensing
4046
----
4147

0 commit comments

Comments
 (0)