Code example for FragmentActivity

Methods: setContentView

0
    /* (non-Javadoc) 
     * @see android.app.Activity#setContentView(android.view.View, android.view.ViewGroup.LayoutParams) 
     */ 
    @Override 
    public void setContentView(View v, LayoutParams params) {
        super.setContentView(v, params);
        mHelper.registerAboveContentView(v, params);
    } 
 
    /* (non-Javadoc) 
     * @see com.slidingmenu.lib.app.SlidingActivityBase#setBehindContentView(int) 
     */ 
    public void setBehindContentView(int id) {
        setBehindContentView(getLayoutInflater().inflate(id, null));
    } 
 
    /* (non-Javadoc) 
     * @see com.slidingmenu.lib.app.SlidingActivityBase#setBehindContentView(android.view.View) 
     */ 
    public void setBehindContentView(View v) {
        setBehindContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));