File tree 1 file changed +9
-0
lines changed
sample/src/main/java/com/github/amlcurran/showcaseview/sample
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 7
7
8
8
import java .lang .reflect .Field ;
9
9
10
+ /**
11
+ * A collection of not-officially supported ViewTargets. Use them at your own risk!
12
+ */
10
13
public class ViewTargets {
11
14
15
+ /**
16
+ * Highlight the navigation button (the Up or Navigation drawer button) in a Toolbar
17
+ * @param toolbar The toolbar to search for the view in
18
+ * @return the {@link ViewTarget} to supply to a {@link com.github.amlcurran.showcaseview.ShowcaseView}
19
+ * @throws MissingViewException when the view couldn't be found. Raise an issue on Github if you get this!
20
+ */
12
21
public static ViewTarget navigationButtonViewTarget (Toolbar toolbar ) throws MissingViewException {
13
22
try {
14
23
Field field = Toolbar .class .getDeclaredField ("mNavButtonView" );
You can’t perform that action at this time.
0 commit comments