Code example for ImageButton

Methods: setImageDrawable

0
	public void setRightIconText(String words) {
		mRightIconText.setText(words);
	} 
	 
	public void setLeftIcon(Drawable bullet) {
		mLeftIcon.setImageDrawable(bullet);
	} 
 
	public void setLeftIcon(int res_id) {
		mLeftIcon.setImageResource(res_id);
	} 
	 
	public void setRightIcon(Drawable bullet) {
		mRightIcon.setImageDrawable(bullet);
	} 
 
	public void setRightIcon(int res_id) {
		mRightIcon.setImageResource(res_id);
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE