Lines Matching refs:position
529 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
531 final int itemViewType = adapter.getItemViewType(position);
539 // The item at position zero is the default already.
540 if (position > 0) {
541 mAdapter.getDataModel().setDefaultActivity(position);
546 position = mAdapter.getShowDefaultActivity() ? position : position + 1;
547 Intent launchIntent = mAdapter.getDataModel().chooseActivity(position);
645 public int getItemViewType(int position) {
646 if (mShowFooterView && position == getCount() - 1) {
671 public Object getItem(int position) {
672 final int itemViewType = getItemViewType(position);
678 position++;
680 return mDataModel.getActivity(position);
686 public long getItemId(int position) {
687 return position;
690 public View getView(int position, View convertView, ViewGroup parent) {
691 final int itemViewType = getItemViewType(position);
711 ResolveInfo activity = (ResolveInfo) getItem(position);
717 if (mShowDefaultActivity && position == 0 && mHighlightDefaultActivity) {