Code example for ImageButton

Methods: setImageResource, setOnClickListener, setTag

0
        mTitleView.setText(titleText);
        a.recycle();
    } 
 
    public void setHomeAction(IntentAction action) {
        mHomeBtn.setOnClickListener(this);
        mHomeBtn.setTag(action);
        mHomeBtn.setImageResource(action.getDrawable());
        mHomeLayout.setVisibility(View.VISIBLE);
    } 
 
    /* 
     * public void showLogo() { mLogoView.setVisibility(View.VISIBLE); 
     * mHomeView.setVisibility(View.GONE); } 
     */ 
 
    public void setTitle(CharSequence title) {
        mTitleView.setText(title);
    } 
 
    public void setTitle(int resid) {