Android Open Source - cloud-app My Drawer Layout






From Project

Back to project page cloud-app.

License

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

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);
    }

}




Java Source Code List

org.bq.adapter.LeftAdapter.java
org.bq.fragement.FirstFragment.java
org.bq.fragement.SecondFragment.java
org.bq.layout.MyDrawerLayout.java
org.bq.yun.ApplicationTest.java
org.bq.yun.MainActivity.java