开发者

Android TouchEvent in ListActivity..!

I have created a list activity where i have placed some items and i am using OnListItemClick to get the desired actions through D-pad and KeyLeft and KeyRight Buttons, In Emulator TouchEvent is not working , I want to know whether it works in real Handsets??? How can i enable the TOuchEvent also, Can anyone p开发者_JAVA百科lease help me out in this.

Appreciate your Help

Thanks in Advance


onListItemClicked should work for touch events, too. Perhaps the behavior is somewhat different for emulators because I wrote an app with a ListActivity and it registers touch events when I run it on my phone. Try this, when running in the emulator, hold down the mouse button a little longer before letting go. I've had problems before in the emulator where buttons don't trigger if you don't hold them down long enough.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜