Lines Matching refs:index
45 * Returns the index for the given item in the adapter.
55 * Returns the index for the given key in the adapter.
82 int index = mItems.indexOfKey(key);
83 if (index >= 0) {
84 if (mItems.valueAt(index) != item) {
85 mItems.setValueAt(index, item);
86 notifyItemRangeChanged(index, 1);
90 index = mItems.indexOfKey(key);
91 notifyItemRangeInserted(index, 1);
101 int index = mItems.indexOfKey(key);
102 if (index >= 0) {
103 mItems.removeAt(index);
104 notifyItemRangeRemoved(index, 1);