¡@

Home 

2014/10/16 ¤W¤È 08:19:14

android Programming Glossary: menusize

How did Google manage to do this? Slide ActionBar in Android application

http://stackoverflow.com/questions/11234375/how-did-google-manage-to-do-this-slide-actionbar-in-android-application

private static FrameLayout parent private static int menuSize private static int statusHeight 0 private Activity act SlideMenu.. this.show true public void show boolean animate menuSize Functions.dpToPx 250 act content LinearLayout act.findViewById.. content.getLayoutParams parm.setMargins menuSize 0 menuSize 0 content.setLayoutParams parm animation for smooth..

How did Google manage to do this? Slide ActionBar in Android application

http://stackoverflow.com/questions/11234375/how-did-google-manage-to-do-this-slide-actionbar-in-android-application

private static View menu private static LinearLayout content private static FrameLayout parent private static int menuSize private static int statusHeight 0 private Activity act SlideMenu Activity act this.act act call this in your onCreate for.. .getWindowVisibleDisplayFrame rectgle statusHeight rectgle.top this.show true public void show boolean animate menuSize Functions.dpToPx 250 act content LinearLayout act.findViewById android.R.id.content .getParent FrameLayout.LayoutParams.. .getParent FrameLayout.LayoutParams parm FrameLayout.LayoutParams content.getLayoutParams parm.setMargins menuSize 0 menuSize 0 content.setLayoutParams parm animation for smooth slide out TranslateAnimation ta new TranslateAnimation menuSize..