Saturday, February 9, 2013

Android-hide sliding drawer handle

To hide sliding drawer handle when ever you want create a method in the above sliding drawer class like :-

public void hideHandle(){
        LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(0,0);
        mHandle.setLayoutParams(params);
  }

Keep the width and height to 0 and 0 in params and apply to handle.

Call in your activity to hide handle if you want.

No comments:

Post a Comment