Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - setChoiceMode(), getSelectedItemPosition() - inconsistent

setChoiceMode(), getSelectedItemPosition() - inconsistent

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

setChoiceMode(), getSelectedItemPosition() - inconsistent

Postby gsmd » Wed Feb 18, 2009 7:09 pm

Got an activity that extends ListActivity.
The list is backed up by a custom adapter that extends BaseAdapter.
--
getListView().setFocusable(true);
getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);
--
I do a simple (getSelectedItemPosition() == ==
ListView.INVALID_POSITION) check in onPrepareOptionsMenu() to disable
the items that require an item to be selected.

Now, what I do after launching the activity (the action takes place
under emulator, ver.1.1) an what it looks like:
1) Hit menu - the menu items are disabled - OK
2) Select an item with mouse wheel and hit menu - the items get
enabled - OK
3) Click anywhere outside the list, repeat 2). The items don't get
enabled - WTF?
4) Start from scratch, select an item hitting Del and moving mouse.
The result is the same as for 3).

Why do these (3, 4) things keep happening to me? :)
TIA.
gsmd
Freshman
Freshman
 
Posts: 3
Joined: Fri Dec 19, 2008 3:15 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests