Reputation: 79735
I'm working on a game for the Android (Sky Hiking - Google Play, Github). I want to add a "help" option for the game where it'll go over the game components one by one, point to them with an arrow and have a text box say what they are used for. I'm looking for advice on what's the best way to achieve this. Should I display a huge (partly transparent) image over the game activity which contains the arrow (I will need an image for each arrow for each component of the game).
Edit: There's also an issue of doing this for different screen sizes.
What's the best practice on this one?
Upvotes: 8
Views: 2027
Reputation: 82583
Here's what I would do in such a case. It may not be the best solution, but it should work, irrespective of the screen size:
Do the following in a loop, once for each element:
Upvotes: 6
Reputation: 7947
I'd suggest taking a look at PopupWindow. It can display an arbitrary view (your pointer and text box) and it can be anchored to a view of your choosing (the one you're explaining).
Upvotes: 0