Code example for ImageView

Methods: setImageResourcesetVisibility

0
     *  
     * @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);
    } 
 
    /* Emulating Honeycomb, setdisplayHomeAsUpEnabled takes a boolean 
     * and toggles whether the "home" view should have a little triangle 
     * indicating "up" */ 
    public void setDisplayHomeAsUpEnabled(boolean show) {
        mBackIndicator.setVisibility(show? View.VISIBLE : View.GONE);
    } 
 
 
    public void setTitle(CharSequence title) {
        mTitleView.setText(title);
    }