This library is design to insert cursor row inside another cursor or insert dummy row inside actual cursor.
- Insert cursor row at particular position inside actual cursor.
- Insert a cursor row after particular interval inside actual cursor.
- Library : API 1
- LibrarySample : API 1
1:To create cursor row : example:
HashMap<String, Object> cursorData = newHashMap<String, Object>();
cursorData.put("_id", -1);
cursorData.put("row_identifier",5);
cursorData.put("title", "Android");
CursorcursorRow = CursorCreator.getCursorRow(cursorData);2:To insert cursor at particular position: example:
HashMap<Integer, Cursor> cursorBucket = newHashMap<Integer, Cursor>()
CursorcursorRow1=...;
CursorcursorRow2=...;
CursorcursorRow2=...;
cursorBucket.put(2, cursorRow1);
cursorBucket.put(4, cursorRow2);
cursorBucket.put(5, cursorRow3);
where2,4,5reprsentpositionwherecursorRow1,cursorRow2,cursorRow3respectivilygetaddedinsideactualcursor;1:To insert cursor at particular interval : example:
CursorcursorRow=...;
CursormergedCursor = CursorCreator.mergeCursorAtInterval(cursorRow1,
actualCursor, 3);
where3reprsentsintervalNo need to add any extra config.
Copyright 2014-present Ajay Sahani
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
