Code example for ActionBar.Tab

Methods: setIcon

0
        return this;
    } 
 
    @Override 
    public CompatTab setIcon(int resId) {
        mTab.setIcon(resId);
        return this;
    } 
 
    @Override 
    public CompatTab setTabListener(CompatTabListener callback) {
        mCallback = callback;
        mTab.setTabListener(this);
        return this;
    } 
 
    @Override 
    public CharSequence getText() {
        return mTab.getText();
    }