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.
package org.bq.layout; //from w ww.ja v a 2 s .co m import android.content.Context; import android.support.v4.widget.DrawerLayout; import android.util.AttributeSet; /** * Created by bq on 2015/1/4. */ public class MyDrawerLayout extends DrawerLayout { public MyDrawerLayout(Context context) { super(context); } public MyDrawerLayout(Context context, AttributeSet attrs) { super(context, attrs); } public MyDrawerLayout(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override 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); } }