i am using this library from Github to make sequence of TapTargetView
i want to use the TapTargetSequence but i don't know the first parameter of this " TapTarget.forBounds " in the Sequence example that provided in down page of the link
and don't know the meaning of Rect
and about this library
i don't know how to sequence of this library
From the source of TapTargetView:
Each tap target describes a target via a pair of bounds and icon. The bounds dictate the location and touch area of the target, where the icon is what will be drawn within the center of the bounds.
You are supposed to provide a Rect object that defines starting point and the area of your target to show the view for. (left, top, right, bottom).
Example of how to create a target rectangle for a view (
view is your button):
int loc = new int; view.getLocationOnScreen(loc); Rect rect = new Rect(loc, loc, loc + view.getWidth(), l + view.getHeight());