use weight for equal child of layout. margin and padding unable to set equal child because when multi screen support and margin and padding set fix, but in weight they remains same in all layout.
In Linear Layout need orientation horizontal and vertical.
public void openDrawable() { // TODO Auto-generated method stub optionMenuStr="open"; //menuImage.setBackgroundResource(R.drawable.backk); drawerLayout.openDrawer(Gravity.LEFT); }
public void closeDrawable() { // TODO Auto-generated method stub optionMenuStr="close"; menuImage.setBackgroundResource(R.drawable.menu); drawerLayout.closeDrawers(); }
Disable Swipe Open Navigation Drawer Android:
Disable Swipe Open Navigation Drawer, sometime we use fragment and BaseActivity is same and fragment are different then in other fragments we need to stop swipe open Drawer then use this code.