In my onCreate method of my Activity: ListView listView = (ListView) findViewById(R.id.listView); registerForContextMenu(listView);
Why do I get this NullPointerException? 08-08 11:07:15.669: ERROR/AndroidRuntime(659): Uncaught handler: thread main exiting due to uncaught exception
I have a custom list adapter inside of a TableLayout. This TableLayout is nested inside a of a LinearLayout.
I would like to refresh the ListView every time I change the base data. Please see the following example:
I\'m use ListView in my activity with custom array adapter (it just overrides getView method) for some chat activity. When i open soft keyboard listview resizing (for example from 5 to 2 visible rows)
I have an activity called MoviesActivity that uses a ListAdapter called MovieAdapter to display a list of movies. Each list item has name etc., and a button which the user can click to play the movie.
I am trying to create a single-choice (e.g., radio button) list of items that are queried from a database. To work with the currently selected row, I need to use the getCheckedItemPosition() and setIt
This question already has an answer here: Closed 11 years ago. Possible Duplicate: Is there a way to call notifyDataSetChanged() from the main activity for a custom adapter of an item inside a
I\'ve got a ListView which gets populated by items programmatically using ListAdapter. As a layout for a single item, I\'ve got an XML defined.
I want to create a journal that appears as a list in a ListView. The list should be able to have a text entry or an image for each row. Now, I have these entries (text and image) in a database. I just