-1

I have seen apps using images or some kind of same stuff (my guess), for helping user's to understand how to use their app on startup.

For Example Flipkart etc.

Flikpart Screenshot 1 Flipkart Screenshot 2

I understand they may be using some kind of images.

what my problem is how can they match images to fit properly over their app on so many wide range of mobile screen densities.

How can i apply the same for my own app

Should i use images (Screenshots)

Or is their any proper way of doing this

Community
  • 1
  • 1
phoenisx
  • 1,253
  • 13
  • 26

2 Answers2

1

You can get the Location for each view by calling its built in method yourView.getLocationOnScreen(int[] coordinates)

Ex.

Button myButton = .....;

int[] coor = new int[2];
myButton.getLocationOnScreen(coor);

// coor[0] is the X axis
// coor[1] is the Y axis

// call your drawer as you wish.
neferpitou
  • 1,542
  • 2
  • 18
  • 24
0

It is called Overlay. See this answer

Tutorial links http://www.christianpeeters.com/android-tutorials/android-tutorial-overlay-with-user-instructions/

Community
  • 1
  • 1
y7876768
  • 321
  • 2
  • 12
  • I don't want to use any custom library... i liked what @deadlydragon00 said. I saw [ShowcaseView](https://github.com/amlcurran/ShowcaseView), how can i make something like that. I know i can use a view with transparency, but how can i highlight something behind that view like [ShowcaseView](https://github.com/amlcurran/ShowcaseView) does – phoenisx Jul 18 '15 at 13:57
  • 1
    [See this answer here](http://stackoverflow.com/a/10217050/5098444). Tutorial link http://www.christianpeeters.com/android-tutorials/android-tutorial-overlay-with-user-instructions/ – y7876768 Jul 18 '15 at 14:04
  • Sorry, I didn't know that this question was already answered. i tried to search it using many sentences i could think of. Anyways the link you gave does not say anything about how to **Highlight** bottom view like ShowcaseView does. Anyways I think i can get a workaround by creating circlular view with white transparency #88FFFFFF, over Black transparent layout, which may highlight it like ShowcaseView – phoenisx Jul 18 '15 at 14:18