Best code examples for Android SparseIntArray class (android.util.SparseIntArray)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android SparseIntArray class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android SparseIntArray examples from Open Source projects
This code example shows how to use the following methods: indexOfValue, keyAt
232:	int index = mListMapping.indexOfValue(cursorPosition); 
-
236:	return mListMapping.keyAt(index); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: indexOfKey, put
279:	int index = mKeys.indexOfKey(keyCode); 
-
282:	mKeys.put(keyCode, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: indexOfValue, keyAt
157:	int index = mListMapping.indexOfValue(cursorPosition); 
-
161:	return mListMapping.keyAt(index); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: append
129:	super.onPrepareAttributes(attributes); 
-
132:	attributes.append(android.R.attr.padding, android.R.attr.padding); 
133:	attributes.append(android.R.attr.paddingLeft, android.R.attr.paddingLeft); 
134:	attributes.append(android.R.attr.paddingTop, android.R.attr.paddingTop); 
135:	attributes.append(android.R.attr.paddingRight, android.R.attr.paddingRight); 
136:	attributes.append(android.R.attr.paddingBottom, android.R.attr.paddingBottom); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: get, indexOfKey, indexOfValue, keyAt, valueAt
158:	LogUtils.v("mIndexer.get(section): " + mIndexer.get(section)); 
159:	LogUtils.v("mIndexer.keyAt(section): " + mIndexer.keyAt(section)); 
160:	LogUtils.v("mIndexer.valueAt(section): " + mIndexer.valueAt(section)); 
161:	LogUtils.v("mIndexer.indexOfKey(section): " + mIndexer.indexOfKey(section)); 
162:	LogUtils.v("mIndexer.indexOfValue(section): " + mIndexer.indexOfValue(section)); 
-
164:	int position = mIndexer.keyAt(section); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: get
170:	return super.moveToPosition(mPositions.get(position)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: get, indexOfKey
95:	if (mThemedAssets.indexOfKey(stylableId) < 0) 
-
97:	return mThemedAssets.get(stylableId); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: append
134:	super.onPrepareAttributes(attributes); 
-
137:	attributes.append(android.R.attr.dividerHeight, android.R.attr.dividerHeight); 
138:	attributes.append(android.R.attr.divider, android.R.attr.divider); 
139:	attributes.append(android.R.attr.cacheColorHint, android.R.attr.cacheColorHint); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: get
102:	.setSmallIcon(ICON_MAP.get(params.getIcon().hashCode())) 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
67:	sInstance.mSoundMap = new SparseIntArray(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: append
139:	super.onPrepareAttributes(attributes); 
-
142:	attributes.append(android.R.attr.contentDescription, android.R.attr.contentDescription); 
143:	attributes.append(android.R.attr.src, android.R.attr.src); 
144:	attributes.append(android.R.attr.scaleType, android.R.attr.scaleType); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: get, put
88:	int curEntries = columnArray.get(columnIndex + 1, 0); 
89:	columnArray.put(columnIndex, ++curEntries); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: append, get
64:	SMSList.append(id, SMSList.get(id, 0) + 1); 
-
66:	id + ": " + SMSList.get(id) + " out of " + intent.getIntExtra("size", 0)); 
67:	if (SMSList.get(id) >= intent.getIntExtra("size", 1)) 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: append, get, size
56:	if (viewTypes.get(resource, NO_SUCH_ITEM) == NO_SUCH_ITEM) { 
-
58:	viewTypes.append(resource, viewTypes.size()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: put
38:	SparseIntArray array = new SparseIntArray(); 
39:	array.put(KeyEvent.KEYCODE_DEL, WebkitKeyEvent.KEYCODE_BACKSPACE); 
40:	array.put(KeyEvent.KEYCODE_DPAD_CENTER, WebkitKeyEvent.KEYCODE_ENTER); 
41:	array.put(KeyEvent.KEYCODE_BACK, WebkitKeyEvent.KEYCODE_ESC); 
42:	array.put(KeyEvent.KEYCODE_SPACE, WebkitKeyEvent.KEYCODE_SPACE); 
43:	array.put(KeyEvent.KEYCODE_DPAD_LEFT, WebkitKeyEvent.KEYCODE_LEFT); 
44:	array.put(KeyEvent.KEYCODE_DPAD_UP, WebkitKeyEvent.KEYCODE_UP); 
45:	array.put(KeyEvent.KEYCODE_DPAD_RIGHT, WebkitKeyEvent.KEYCODE_RIGHT); 
46:	array.put(KeyEvent.KEYCODE_DPAD_DOWN, WebkitKeyEvent.KEYCODE_DOWN); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: clear, get, put
92:	mTextCachedSizes.clear(); 
-
246:	int size = mTextCachedSizes.get(key); 
-
251:	mTextCachedSizes.put(key, size); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: clear
80:	private SparseIntArray mPositionCache = new SparseIntArray(); 
-
146:	mPositionCache.clear(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: clear
82:	private SparseIntArray mPositionCache = new SparseIntArray(); 
-
148:	mPositionCache.clear(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: get, indexOfKey, put
146:	final int soundId = mSoundPoolMap.get(id); 
-
248:	if (mSoundPoolMap.indexOfKey(id) >= 0) { 
-
252:	mSoundPoolMap.put(id, soundId); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: append, get
125:	mItems.append(position, col.getIndex()); 
-
234:	int colIndex = mItems.get(position, -1); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: get, put
96:	int count = checkedCount.get(groupPosition, 0); 
-
99:	checkedCount.put(groupPosition, count); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: put
118:	this.mKernings = new SparseIntArray(); 
-
120:	this.mKernings.put(pCharacter, pKerning); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: get
126:	chain.loaderIndexMapping.put(result, idsMapping.get(id)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: append, get
23:	int pos = imageBitmapPosition.get(image, -1); 
-
28:	imageBitmapPosition.append(image, bitmaps.indexOf(bitmap)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
55:	mAlphaMap = new SparseIntArray(26 /* Optimize for English */); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: get
183:	return types.get(position); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: get
39:	return mTaskCountArray.get((int)groupId.getId()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: indexOfValue, keyAt
31:	int idx=map.indexOfValue(numericID); 
-
33:	return map.keyAt(idx); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: get, keyAt, size
223:	return aSelectedItems.size() > 0 ? aSelectedItems.get(aSelectedItems.keyAt(0)) : -1; 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: get, put
53:	int result = this.mCache.get(n); 
-
58:	this.mCache.put(n, result); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: put
21:	private final SparseIntArray mColorMappings = new SparseIntArray(); 
-
48:	this.mColorMappings.put(pColorFrom, pColorTo); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: get, put
54:	if (mSoundPoolMap.get(soundID) == 0) { 
-
56:	mSoundPoolMap.put(soundID, i); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: append
530:	super.onPrepareAttributes(attributes); 
-
533:	attributes.append(android.R.attr.thickness, android.R.attr.thickness); 
534:	attributes.append(android.R.attr.orientation, android.R.attr.orientation); 
Full Snippet Info
4
CodeRank
Related Android SparseIntArray Questions & Answers:
See Code Examples for Android SparseIntArray Methods: