Code example for ImageView

Methods: setImageResource

0
    public void setImageDrawable(Drawable drawable) {
        mImageView.setImageDrawable(drawable);
    } 
 
    public void setImageResource(int resId) {
        mImageView.setImageResource(resId);
    } 
 
    public void setText(CharSequence text) {
        mTextView.setText(text);
    } 
 
    public void setTextResource(int resId) {
        mTextView.setText(resId);
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java