Thursday, May 20, 2010

Re: [android-developers] Custom ListAdapter questions

On Mon, May 17, 2010 at 4:39 AM, Primal <primal007@gmail.com> wrote:
I have 3 questions

I tried registering a context menu for the list view by adding the line after setting the list adapter

`registerforContextMenu(getListView())`;

But on long-click the menu doesnt get displayed. I cannot understand
what I am doing wrong!

You have, of course, overwritten onCreateContextMenu ... right? And you inflate or create your menu in there?
 
Is it possible to display a textview above the listview? I tried it by adding the code for textview above the listview. But then, only the textview gets displayed.

 
I have seen in many twitter clients that on clicking post a window pops up from the top covering only some portion of the screen and rest of the timeline is visible. How can this be done possibly without starting a new activity?


-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment