@@ -0,0 +1,2304 @@
+package com.sometrik.framework;%0A%0Aimport android.graphics.Color;%0Aimport android.support.v4.widget.DrawerLayout;%0Aimport android.support.v7.app.ActionBarDrawerToggle;%0Aimport android.view.Gravity;%0Aimport android.view.View;%0Aimport android.widget.Button;%0Aimport android.widget.FrameLayout;%0Aimport android.widget.LinearLayout;%0Aimport android.widget.TextView;%0A%0Apublic class FWDrawerLayout extends DrawerLayout %7B%0A  %0A  FrameWork frame;%0A%0A  public FWDrawerLayout(final FrameWork frame) %7B%0A    super(frame);%0A    this.frame = frame;%0A    %0A    final DrawerLayout drawer = new DrawerLayout(frame);%0A    System.out.println(%22here jnot%22);%0A    %0A    DrawerLayout.LayoutParams lp = new DrawerLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT);%0A    lp.gravity = Gravity.START;%0A%0A    FrameLayout drawFrame = new FrameLayout(frame);%0A    drawFrame.setLayoutParams(lp);%0A    drawFrame.setBackgroundColor(Color.parseColor(%22#dddbd6%22));%0A    LinearLayout drawerPanel = new LinearLayout(frame);%0A    drawerPanel.setGravity(Gravity.START);%0A    drawerPanel.setClickable(true);%0A    drawerPanel.setOrientation(LinearLayout.VERTICAL);%0A    %0A    ActionBarDrawerToggle mDrawerToggle = new ActionBarDrawerToggle(frame, drawer,%0A            0, 0) %7B%0A%0A        /** Called when a drawer has settled in a completely closed state. */%0A        public void onDrawerClosed(View view) %7B%0A            super.onDrawerClosed(view);%0A            System.out.println(%22drawerClosed%22);%0A            frame.invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()%0A        %7D%0A%0A        /** Called when a drawer has settled in a completely open state. */%0A        public void onDrawerOpened(View drawerView) %7B%0A            super.onDrawerOpened(drawerView);%0A            System.out.println(%22drawerOpened%22);%0A            frame.invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()%0A        %7D%0A    %7D;%0A  %7D%0A%0A  @Override%0A  protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) %7B%0A      widthMeasureSpec = MeasureSpec.makeMeasureSpec(%0A              MeasureSpec.getSize(widthMeasureSpec), MeasureSpec.EXACTLY);%0A      heightMeasureSpec = MeasureSpec.makeMeasureSpec(%0A              MeasureSpec.getSize(heightMeasureSpec), MeasureSpec.EXACTLY);%0A      super.onMeasure(widthMeasureSpec, heightMeasureSpec);%0A  %7D%0A%7D%0A%0A

Add FWDrawerLayout