public class AdapterPhoto
extends android.widget.BaseAdapter
Modifier and Type | Field and Description |
---|---|
protected android.app.Activity |
activity |
protected java.util.ArrayList<Photo> |
items |
Constructor and Description |
---|
AdapterPhoto(android.app.Activity activity,
java.util.ArrayList<Photo> items)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addAll(java.util.ArrayList<Photo> photos)
Add all pictures to a list
|
void |
clear()
To clear picture list
|
int |
getCount()
Size of pictures list
|
java.lang.Object |
getItem(int arg0)
Get picture
|
long |
getItemId(int position)
Get position of picture
|
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
View of picture
|
areAllItemsEnabled, getAutofillOptions, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, setAutofillOptions, unregisterDataSetObserver
protected android.app.Activity activity
protected java.util.ArrayList<Photo> items
public AdapterPhoto(android.app.Activity activity, java.util.ArrayList<Photo> items)
activity
- items
- public int getCount()
public void clear()
public void addAll(java.util.ArrayList<Photo> photos)
photos
- public java.lang.Object getItem(int arg0)
arg0
- public long getItemId(int position)
position
- public android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent)
position
- convertView
- parent
-