Dispatch KeyDown on Listview

by mihoelzl » Tue, 05 Apr 2011 23:07:32 GMT


Sponsored Links
 Hi,
I want to manually dispatch a key down event in a listactivity. This
works when I just add the Event to the Activity by:

this.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN,
KeyEvent.KEYCODE_DPAD_DOWN));
this.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_UP,
KeyEvent.KEYCODE_DPAD_DOWN));


I can now see that the cursor goes down and the next entry in the
listview is selected. But only the text is highlighted and not the
background (It stays black). What am I doing wrong? Any Idea?

BR
Michael

-- 



Other Threads

1. Understanding ListView





If I understand you, you would just add more items to the items() ArrayList.




-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.com

--~--~---------~--~----~------------~-------~--~----~

2. File download in Browser

Unless I am missing something... The Browser should allow the download
of 3gp files from GMail. All attempts thus far have resulted in the
error "The content being downloaded is not supported on the phone."
The same file works fine if the attachment is first downloaded to a pc
and transferred via USB. Is there a glitch in my browser?

Will there be an update to allow the device to download any file
regardless of device support? In some cases, you may need to store the
file to connect the device to a pc at a later time and access it via
usb by a supported application.

"smartphones".

If i have missed a thread on this please point me in the right
direction or let me know what I may need to do on my device.

--~--~---------~--~----~------------~-------~--~----~

3. SlideME - Support for Paid Apps Next Week

4. I want to make some foreigner friends!

5. Multicast UDP recv problem

6. Who wants a 鈾?

7. ScrollView initialization - bug or stupidity?