Android Swipe Images Intro Screen on First Run -
i've been looking around lot lately haven't found on this.
i'm making third android app , i'm looking implement intro screen on first run of app series of images shown explaining apps functionality , idea behind it; can swipe images left or right , @ last image app swiping.
i sort of thing have done camscanner app despite searching have no idea how implement other knowing little bit people referring fragments. appreciated , since need better ui on android, answer lot of developers take cue! :)
create method show popup window. show images in scroll view in popup. @ last image set touch listener dismiss popup. , call method onresume method of activity this
protected void onresume(){ super.onresume(); sharedpreferences pref = getsharedpreferences(myprefs, mode_private); boolean b = pref.getboolean("firsttime",true); if(b) { new handler().postdelayed(new runnable() { public void run() { showintropopup(); } }, 100); } }
in popup set "firsttime" boolean false in sharedpreferences.
Comments
Post a Comment