Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions app/src/main/java/dandy1988/list_view/AdapterListView.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@

import java.util.ArrayList;

// Названия создаются по схеме "ПрилагательноеСуществительное", т.е. правильно будет ListViewAdapter
class AdapterListView extends BaseAdapter {

ArrayList<String> exampleArray = new ArrayList<>();
public ArrayList<Boolean> selections = new ArrayList<>();
ArrayList<String> exampleArray = new ArrayList<>(); //Сделать Private
public ArrayList<Boolean> selections = new ArrayList<>(); //Сделать Private
private final int colorRed = Color.RED;
private final int colorWhite = Color.WHITE;

Expand Down Expand Up @@ -67,7 +68,7 @@ public void deleteItems(){
if ((selections.get(i) != null)&&(selections.get(i) == true)){
selections.remove(i);
exampleArray.remove(i);
i--;
i--; //Для чего эта операция?
}
}
}
Expand Down