Code example for SparseIntArray

Methods: get, indexOfKey

0
                ta.getResourceId(R.styleable.AppTheme_appBackgroundColorPrimary, R.color.darkGray));
        ta.recycle();
    } 
 
    public int getThemedResourceId(int stylableId, int defaultResourceId) {
        if (mThemedAssets.indexOfKey(stylableId) < 0)
            return defaultResourceId;
        return mThemedAssets.get(stylableId);
    } 
 
    public Context getContext() {
        return this;
    } 
 
    public synchronized ActionMode getActionMode() {
        return mActionMode;
    } 
 
    public synchronized void setActionMode(ActionMode mode) {
        mActionMode = mode;
    }