the slidingmenu demo app playstore works without problem on n7. when compile computer, have following problem in resposiveui activity : when open slidingmenu on portrait , change orientation lanscape mode... half screen blank !

i didn't change in code except extending sherlockfragmentactivity adviced here author.
the half blank screen cased slidingmenu demo source code 70 line.
you can modify
if (findviewbyid(r.id.menu_frame) == null) { sm.setbehindoffsetres(r.dimen.slidingmenu_offset); else sm.setbehindoffset(getscreenwidth()); getscreenwidth()
public int getscreenwidth() { display display = getwindowmanager().getdefaultdisplay(); displaymetrics metrics = new displaymetrics(); display.getmetrics(metrics); return metrics.widthpixels; }
Comments
Post a Comment