Code example for RelativeLayout

Methods: setVisibility

0
        mHomeBtn.setImageResource(action.getDrawable());
        mHomeLayout.setVisibility(View.VISIBLE);
    } 
 
    public void clearHomeAction() { 
        mHomeLayout.setVisibility(View.GONE);
    } 
 
    /** 
     * Shows the provided logo to the left in the action bar. 
     *  
     * This is meant to be used instead of the setHomeAction and does not draw 
     * a divider to the left of the provided logo. 
     *  
     * @param resId The drawable resource id 
     */ 
    public void setHomeLogo(int resId) {
        // TODO: Add possibility to add an IntentAction as well. 
        mLogoView.setImageResource(resId);
        mLogoView.setVisibility(View.VISIBLE);
        mHomeLayout.setVisibility(View.GONE);