setListAdapter(new ArrayAdapter<String>(this,R.layout.custom_list_item, r));
protected void onListItemClick(ListView list, View view, int position, long id) {
super.onListItemClick(list, view, position, id);
fname=r.get(position);
내가 배열 어댑터android에서 선택한 컨텍스트 항목에서 위치를 얻는 방법은 무엇입니까?
등으로부터도 위치와 이름을 가지고 위의 코드는, 내가받을 필요가 이러한 모든 상황에 맞는 메뉴의 값이 어떻게 그것을
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);
menu.setHeaderTitle("Playlist Option");
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.context_menu, menu);
}
public boolean onContextItemSelected(MenuItem item) {
// here I select the particular list value, that the value position I need that is only I delete that position from server. what are the data i fetch here? and its possible to get position from array list?
}
하나의 방법, 같이 IndexOf (개체 OBJ), 그것을 시도가있다 .. –