tags:

views:

73

answers:

2

I'm working through the 'notepad' tutorial given in the developer's guide: http://developer.android.com/guide/tutorials/notepad/index.html

For some reason, even when i'm using their solution files, the context menu does not come up with i 'click and hold' on a list entry.

The class extends ListActivity, and calls "registerForContextMenu(getListView());"

but I never see the context menu fire.

Any idea what's wrong with it?

A: 

The way they lay out the rows in that tutorial means that you can only actually make a selection on text, not just the row it's on. Are you pressing on the row itself?

You can fix that by using fill_parent instead of wrap_content in the layout_width attributes of the LinearLayout and ListView in notes_list.xml, and in the TextView inside notes_row.xml

HXCaine
Wow, you're right!I tried to click that a million times, but I guess short text lengths + touch screen == nearly impossible.Thanks!
Murph
A: 

Hi!

I am also working on the tutorial, but still on part one. I have copied the code and even tried to use the solution instead of my own files but i never see the menu "Add note". What could be wrong?

the app launches but all i see is the title and the "no_notes" from string.xml. Thanks!

Anna-Karin