0

i have a app with both side navigation drawer and i was thinking to provide some sort of information such that when the app loads first time, a sort of view should come above the fragment or activity's view like below showing tips such as "Tap here to view navigation drawer".

enter image description here

Rahul Gupta
  • 5,275
  • 8
  • 35
  • 66

3 Answers3

7

Check the ShowcaseView library.

fweigl
  • 21,278
  • 20
  • 114
  • 205
3

Here is a pretty library for that: ShowCase

S.Thiongane
  • 6,883
  • 3
  • 37
  • 52
-2
private static final String PREFS_NAME = "prefs";
private static final String IS_FIRST_LAUNCH = "is_first";

SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
        boolean isFirst = settings.getBoolean(IS_FIRST_LAUNCH, true);
        if (isFirst){
            settings.edit().putBoolean(IS_FIRST_LAUNCH, false).commit();
            showTips();
        }

at showTips() show dialog/activity/fragment as you want.

user2474486
  • 213
  • 3
  • 8
  • 1
    I wasn't asking this. Do read the question again and the answers other people provided – Rahul Gupta Jan 20 '14 at 12:52
  • @RahulGupta I did read/looked at your question and I don't understand why this can't be an answer on your question, hence I don't understand the downvotes. The other answers are recommending a library which I didn't read clearly from your question. If you were not interested in a code sample you should have stated that explictely. I find your question unclear. – rene Apr 01 '14 at 20:31
  • @rene "I don't understand why this can't be an answer on your question, hence I don't understand the downvotes" - This is plain wrong answer, OP clearly shared screenshot what type of view he wants to add in his app and question seems clear to me ! – Ajay S Apr 01 '14 at 20:35