Android Open Source - cloud-app My Drawer Layout

From Project

Back to project page cloud-app.


The source code is released under:

MIT License

If you think the Android project cloud-app listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

//from  w  ww.ja v a 2  s  .co  m
import android.content.Context;
import android.util.AttributeSet;

 * Created by bq on 2015/1/4.
public class MyDrawerLayout extends DrawerLayout {

    public MyDrawerLayout(Context context) {

    public MyDrawerLayout(Context context, AttributeSet attrs) {
        super(context, attrs);

    public MyDrawerLayout(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);

    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        widthMeasureSpec = MeasureSpec.makeMeasureSpec(
                MeasureSpec.getSize(widthMeasureSpec), MeasureSpec.EXACTLY);
        heightMeasureSpec = MeasureSpec.makeMeasureSpec(
                MeasureSpec.getSize(heightMeasureSpec), MeasureSpec.EXACTLY);
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);


Java Source Code List