On 26 kvÄ›, 01:48, Mark Murphy <[email protected]> wrote:
> getSelectedItem(), getSelectedItemId(), and getSelectedView() should all
> work, called on your ListView.
I try this :
@Override
public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);
Log.w(this.getClass().getName(), "create context
menu1"+ getSelectedItemPosition());
Log.w(this.getClass().getName(), "create context menu3"+
v.getBaseline());
Log.w(this.getClass().getName(), "create context menu5"+
myListView.getPosition(v));
Log.w(this.getClass().getName(), "create context menu6"+
myListView.getPosition(menuInfo));
Log.w(this.getClass().getName(), "create context menu7"+
myListView.getPosition(menu));
Everything return me -1. What is wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---