Код: Выделить всё
for (Integer i : arr_posN) {
Log.d(TAG, "arr_posN ("+ Integer.toString(i) + "): " + Integer.toString(Integer.valueOf(arr_posN.get(i))));
if(arr_posN.get(i) == (position + 1)){
start_id = i;
Log.d(TAG, "start_id: " + Integer.toString(start_id));
break;
}
}
Код: Выделить всё
itemClick: position = 4, id = 53
arr_posN (1): 2
arr_posN (2): 3
arr_posN (3): 4
arr_posN (4): 2
arr_posN (2): 3
arr_posN (3): 4
arr_posN (4): 2
arr_posN (5): 3
arr_posN (6): 4
arr_posN (5): 3
arr_posN (6): 4
arr_posN (5): 3
arr_posN (6): 4
Код: Выделить всё
for (int i = 0; i < arr_posN.size(); i++) {
Log.d(TAG, "arr_posN ("+ Integer.toString(i) + "): " + Integer.toString(Integer.valueOf(arr_posN.get(i))));
if(arr_posN.get(i) == (position + 1)){
start_id = i;
Log.d(TAG, "start_id: " + Integer.toString(start_id));
break;
}
}
Код: Выделить всё
itemClick: position = 4, id = 53
arr_posN (0): 1
arr_posN (1): 2
arr_posN (2): 3
arr_posN (3): 4
arr_posN (4): 2
arr_posN (5): 3
arr_posN (6): 4
arr_posN (7): 5
start_id: 7