title: Adding NavigationDrawer programmatically
body: <p>I'm trying to add a NavigationDrawer programmatically to my activity, but when it is added I can't interact whith the rest of the screen, the buttons aren't clickables for example. The method for add de NavigationDrawer is this:</p>
  
  <pre><code>//The activity view
  final ViewGroup viewActvity = (ViewGroup) this.findViewById(android.R.id.content);
  
  //The custom view to show in the NavigationDrawer
  LinearLayout menu = new LinearLayout(this);
  
  //The DrawerLayout
  DrawerLayout drawerLayout = new android.support.v4.widget.DrawerLayout(this);
  
  float width = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 280, getResources().getDisplayMetrics());
  DrawerLayout.LayoutParams lp = new DrawerLayout.LayoutParams((int) width, LinearLayout.LayoutParams.MATCH_PARENT);
  lp.gravity = Gravity.START;
  
  LinearLayout drawerPanel = new LinearLayout(this);
  drawerPanel.setGravity(Gravity.START);
  drawerPanel.setClickable(true);
  drawerPanel.setLayoutParams(lp);
  drawerPanel.addView(menu, lp);
  drawerPanel.setOrientation(LinearLayout.VERTICAL);
  
  drawerLayout.addView(drawerPanel, lp);
  
  viewActvity.addView(drawerLayout);
  </code></pre>
  
  <p>Any idea? Thank you</p>