android - Issues with Showcase View on small screen -


i'm using great showcase view library in app , it's amazing unfortunately layout messed on smaller screens on small screens, guess it's problem in implementation couldn't figure out how fix this.

example

and code in 1 of activities follow:

if(showcase_flag == 1){             mplusbutton.setclickable(false);             guide.setvisibility(view.invisible);             final relativelayout.layoutparams lps = new relativelayout.layoutparams(                     viewgroup.layoutparams.wrap_content,                     viewgroup.layoutparams.wrap_content);             lps.addrule(relativelayout.align_parent_bottom);             lps.addrule(relativelayout.align_parent_left);             lps.setmargins(40,0,0,160);              mviews1 = new showcaseview.builder(this)                     .setstyle(r.style.customshowcasetheme3)                     .setcontenttitle("welcome listo")                     .setcontenttext("the best way share to-do lists\nand manage them in few clicks!")                     .setonclicklistener(new view.onclicklistener() {                         @override                         public void onclick(view v) {                              if(showcase_num == 0){                                 showcase_num++;                                 mviews1.settarget(new viewtarget(r.id.fab,mainactivity.this));                                 mviews1.setcontenttitle("manage lists");                                 mviews1.setcontenttext("press on plus button add new list.\nlong press on list exit it, rename, mute or delete it." +                                         "\n\nat both sides of list's name can see number of participants , tasks on it.");                                 mviews1.setbuttontext("got it!");                              }else{                                 mviews1.hide();                                 mviews1.destroydrawingcache();                                 mplusbutton.setclickable(true);                                  updatelist();                                  sharedpreferences.editor editor = prefs.edit();                                 editor.putint("showcase_key", 0);                                 editor.commit();                             }                          }                     })                     .donotblocktouches()                     .build();              mviews1.setbuttontext("i'm ready");             mviews1.setbuttonposition(lps);         }else {             updatelist();         } 

unfortunately isn't issue implementation, issue library. isn't clever trying squeeze in on small screen. i'll keep issue in mind i'm rewriting it!


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -