Code example for ImageView

Methods: setBackgroundResource

0
        void setIcon(int iconId) {
            tab.setImageResource(iconId);
        } 
 
        void setTabBackgroundResource(int tabId) {
            tab.setBackgroundResource(tabId);
        } 
 
        void setBarBackgroundResource(int barId) {
            text.setBackgroundResource(barId);
        } 
 
        void setHintText(int resId) {
            text.setText(resId);
        } 
 
        void hide() { 
            boolean horiz = alignment == ALIGN_LEFT || alignment == ALIGN_RIGHT;
            int dx = horiz ? (alignment == ALIGN_LEFT ? alignment_value - tab.getRight()
                    : alignment_value - tab.getLeft()) : 0;
Connect your IDE to all the code out there  Get Codota for Java