public class BadgeProgressAdapter
extends android.widget.BaseAdapter
BadgeProgressView
for each element in the list.
In addition, it will apply the application's theme
.Constructor and Description |
---|
BadgeProgressAdapter(android.content.Context context)
Initializes the adapter so it will display the current Captain Up logged in user's badges.
|
BadgeProgressAdapter(android.content.Context context,
BadgeProgressMap badgeProgressMap)
Initializes the adapter so it will display the given badge progress map.
|
BadgeProgressAdapter(android.content.Context context,
BadgeProgressMap badgeProgressMap,
int badgeLayout)
Initializes the adapter so it will display the given badge progress map.
|
BadgeProgressAdapter(android.content.Context context,
int badgeLayout)
Initializes the adapter so it will display the current Captain Up logged in user's badges.
|
BadgeProgressAdapter(android.content.Context context,
java.lang.String userId)
Initializes the adapter so it will display the badges of the given user.
|
BadgeProgressAdapter(android.content.Context context,
java.lang.String userId,
int badgeLayout)
Initializes the adapter so it will display the badges of the given user.
|
Modifier and Type | Method and Description |
---|---|
void |
filterByCompletion(java.lang.Boolean filter)
Filters the badges that are displayed according to their completion status.
|
int |
getCount() |
java.lang.Object |
getItem(int position) |
long |
getItemId(int position) |
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent) |
public BadgeProgressAdapter(android.content.Context context)
context
- the context of the activity this will display data onpublic BadgeProgressAdapter(android.content.Context context, int badgeLayout)
context
- the context of the activity this will display data onbadgeLayout
- the id of the layout that will be used to display the badgesBadgeProgressView
public BadgeProgressAdapter(android.content.Context context, java.lang.String userId)
context
- the context of the activity this will display data onuserId
- the user id for the user whose badges' progress you wish to viewpublic BadgeProgressAdapter(android.content.Context context, java.lang.String userId, int badgeLayout)
context
- the context of the activity this will display data onuserId
- the user id for the user whose badges' progress you wish to viewbadgeLayout
- the id of the layout that will be used to display the badgespublic BadgeProgressAdapter(android.content.Context context, BadgeProgressMap badgeProgressMap)
context
- the context of the activity this will display data onbadgeProgressMap
- the details of the badges to displaypublic BadgeProgressAdapter(android.content.Context context, BadgeProgressMap badgeProgressMap, int badgeLayout)
context
- the context of the activity this will display data onbadgeProgressMap
- the details of the badges to displaybadgeLayout
- the id of the layout that will be used to display the badgespublic void filterByCompletion(java.lang.Boolean filter)
filter
- the behaviour is defined by:
null
- everything is displayedtrue
- only completed badgesfalse
- only incomplete badgespublic int getCount()
public java.lang.Object getItem(int position)
public long getItemId(int position)
public android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent)