Im sure a dumb question, but how do I get the current view?
I have implemented an expandedList from a sample, but it does not use
an .xml file to define the view. It works, but now Im trying to add a
context menu for a long press. I need to pass the current view into
the registerForContextMenu(view) method.
Some of the code ...
public class HomePage extends ExpandableListActivity {
private ExpandableListAdapter mAdapter;
... load some data to arrays ....
mAdapter = new SimpleExpandableListAdapter( ....
setListAdapter(mAdapter);
.....
Since there was no xml, there was no R.layout.xxxxx.
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
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