Code example for SparseIntArray

Methods: getindexOfKey

                ta.getResourceId(R.styleable.AppTheme_appBackgroundColorPrimary, R.color.darkGray));
    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;
Connect your IDE to all the code out there  Get Codota for Java