@SuppressWarnings("unchecked") @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { ListView listView = (ListView)parent; HashMap<String, String> map = (HashMap<String, String>) listView.getItemAtPosition(position); String fileName = map.get("ItemFileName"); PlayRecFile(fileName); } });
@SuppressWarnings("unchecked") @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { ListView listView = (ListView) parent; HashMap<String, String> map = (HashMap<String, String>) listView.getItemAtPosition(position); String fileName = map.get("ItemFileName"); PlayRecFile(fileName); } });
@SuppressWarnings("unchecked") @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { ListView listView = (ListView)parent; HashMap<String, String> map = (HashMap<String, String>) listView.getItemAtPosition(position); String fileName = map.get("ItemFileName"); PlayRecFile(fileName); } });
@SuppressWarnings("unchecked") @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { ListView listView = (ListView) parent; HashMap<String, String> map = (HashMap<String, String>) listView.getItemAtPosition(position); String fileName = map.get("ItemFileName"); PlayRecFile(fileName); } });
@Override protected void onListItemClick(ListView l, View v, int position, long id) { Map<String, String> item = (Map<String, String>)l.getItemAtPosition(position); String className = item.get("class"); if (className != null) { Intent intent = new Intent(); intent.setComponent(new ComponentName(this, className)); startActivity(intent); } } }
ListView list = getListView(); int start = list.getFirstVisiblePosition(); for(int i=start, j=list.getLastVisiblePosition();i<=j;i++) if(target==list.getItemAtPosition(i)){ View view = list.getChildAt(i-start); list.getAdapter().getView(i, view, list); break; }
ListView list = getListView(); int start = list.getFirstVisiblePosition(); for(int i=start, j=list.getLastVisiblePosition();i<=j;i++) if(target==list.getItemAtPosition(i)){ View view = list.getChildAt(i-start); list.getAdapter().getView(i, view, list); break; }
@Override public void onClick(DialogInterface dialog, int which) { restoreOpenedMenu(); listener.onViewRootSelected( (View) listView.getItemAtPosition(listView.getCheckedItemPosition())); } });
private void onListItemClick(ListView listView, View v, int position) { @SuppressWarnings("unchecked") JSONObject graphObject = (JSONObject) listView.getItemAtPosition(position); String id = adapter.getIdOfGraphObject(graphObject); selectionStrategy.toggleSelection(id); adapter.notifyDataSetChanged(); if (onSelectionChangedListener != null) { onSelectionChangedListener.onSelectionChanged(PickerFragment.this); } }
@Override protected void onListItemClick(ListView l, View v, int position, long id) { AlertDialog dialog = new AlertDialog.Builder(this).create(); dialog.setTitle(R.string.deviceDetails); DeviceDisplay deviceDisplay = (DeviceDisplay)l.getItemAtPosition(position); dialog.setMessage(deviceDisplay.getDetailsMessage()); dialog.setButton( getString(R.string.OK), new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } } ); dialog.show(); TextView textView = (TextView) dialog.findViewById(android.R.id.message); textView.setTextSize(12); super.onListItemClick(l, v, position, id); }
Cursor cursor = (Cursor) listView.getItemAtPosition(info.position);
selectedContextAccount = (BaseAccount)getListView().getItemAtPosition(menuInfo.position);
int position, long id) { Object o = list1.getItemAtPosition(position); String pen = o.toString(); Toast.makeText(getApplicationContext(), "You have chosen the pen: " + " " + pen, Toast.LENGTH_LONG).show();
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { String itemValue = (String) lvSensor.getItemAtPosition(position); Intent intent; switch (itemValue) {
@Override protected void onListItemClick(ListView l, View v, int position, long id) { Map map = (Map) l.getItemAtPosition(position); Intent intent = (Intent) map.get("intent"); startActivity(intent); } }
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { EaseUser user = (EaseUser)listView.getItemAtPosition(position); listItemClickListener.onListItemClicked(user); } });
@Override protected void onListItemClick(ListView l, View v, int position, long id) { @SuppressWarnings("unchecked") Map<String, Object> map = (Map<String, Object>) l.getItemAtPosition(position); Intent intent = (Intent) map.get("intent"); startActivity(intent); }
@SuppressWarnings("unchecked") @Override protected void onListItemClick(ListView l, View v, int position, long id) { Map<String, Object> map = (Map<String, Object>) l.getItemAtPosition(position); Intent intent = (Intent) map.get("intent"); startActivity(intent); }
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { try { EaseUser user = ((EaseUser) listView.getItemAtPosition(position)); if (user != null && user.getUserInfo() != null) { startActivity(new Intent(getActivity(), UserDetailsActivity.class).putExtra(FXConstant.KEY_USER_INFO, user.getUserInfo())); } } catch (NullPointerException e) { e.printStackTrace(); } } });
@OnItemClick(R.id.coins_list) void editFee(int currentSelection) { Value fee = (Value) coinList.getItemAtPosition(currentSelection); // Create the fragment and show it as a dialog. DialogFragment editFeeDialog = EditFeeDialog.newInstance(fee.type); editFeeDialog.show(getFragmentManager(), EDIT_FEE_DIALOG); }