public class SquareAdapter
extends BaseAdapter
Modifier and Type | Class and Description |
---|---|
static class |
SquareAdapter.ViewHolder |
Modifier and Type | Field and Description |
---|---|
private Context |
context |
private java.util.ArrayList |
data |
(package private) int |
i |
private static LayoutInflater |
inflater |
private static java.lang.String |
TAG |
Constructor and Description |
---|
SquareAdapter(Context c,
java.util.ArrayList d) |
Modifier and Type | Method and Description |
---|---|
void |
favouriteSquare(int method,
Square square) |
int |
getCount() |
java.lang.Object |
getItem(int position) |
long |
getItemId(int position) |
View |
getView(int position,
View convertView,
ViewGroup parent)
Depends upon data size called for each row , Create each ListView row
|
private static final java.lang.String TAG
private Context context
private java.util.ArrayList data
private static LayoutInflater inflater
int i
public int getCount()
public java.lang.Object getItem(int position)
public long getItemId(int position)
public View getView(int position, View convertView, ViewGroup parent)
public void favouriteSquare(int method, Square square)