public class ResolverActivity.ResolveListAdapter extends BaseAdapter
Modifier and Type | Field and Description |
---|---|
protected LayoutInflater |
mInflater |
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
Constructor and Description |
---|
ResolveListAdapter(Context context,
List<Intent> payloadIntents,
Intent[] initialIntents,
List<ResolveInfo> rList,
int launchedFromUid,
boolean filterLastUsed) |
areAllItemsEnabled, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver
protected final LayoutInflater mInflater
public void handlePackagesChanged()
public ResolverActivity.DisplayResolveInfo getFilteredItem()
public ResolverActivity.DisplayResolveInfo getOtherProfile()
public int getFilteredPosition()
public boolean hasFilteredItem()
public float getScore(ResolverActivity.DisplayResolveInfo target)
public void onListRebuilt()
public boolean shouldGetResolvedFilter()
public ResolveInfo resolveInfoForPosition(int position, boolean filtered)
public ResolverActivity.TargetInfo targetInfoForPosition(int position, boolean filtered)
public int getCount()
Adapter
public int getUnfilteredCount()
public int getDisplayInfoCount()
public ResolverActivity.DisplayResolveInfo getDisplayInfoAt(int index)
public ResolverActivity.TargetInfo getItem(int position)
Adapter
position
- Position of the item whose data we want within the adapter's
data set.public long getItemId(int position)
Adapter
position
- The position of the item within the adapter's data set whose row id we want.public boolean hasExtendedInfo()
public boolean hasResolvedTarget(ResolveInfo info)
public int getDisplayResolveInfoCount()
public ResolverActivity.DisplayResolveInfo getDisplayResolveInfo(int index)
public final View getView(int position, View convertView, ViewGroup parent)
Adapter
LayoutInflater.inflate(int, android.view.ViewGroup, boolean)
to specify a root view and to prevent attachment to the root.position
- The position of the item within the adapter's data set of the item whose view
we want.convertView
- The old view to reuse, if possible. Note: You should check that this view
is non-null and of an appropriate type before using. If it is not possible to convert
this view to display the correct data, this method can create a new view.
Heterogeneous lists can specify their number of view types, so that this View is
always of the right type (see Adapter.getViewTypeCount()
and
Adapter.getItemViewType(int)
).parent
- The parent that this view will eventually be attached topublic boolean showsExtendedInfo(ResolverActivity.TargetInfo info)
public boolean isComponentPinned(ComponentName name)
public final void bindView(int position, View view)