Re: [android-developers] Re: ListView and MotionEvent

2011-10-03 Thread Studio LFP
The HTC Hero has a little ball that can go any direction. So it will work left/right and up/down. With the keyboard, you should be getting onKeyEvents. Override that and watch for different keycodes and events. http://developer.android.com/reference/android/view/KeyEvent.html I think disable f

Re: [android-developers] Re: ListView and MotionEvent

2011-10-03 Thread John Goche
I also noticed that a disabled button can be focused, which could require having to design a separate icon. I don't understand the point of this combination: if a button is disabled why does android make it possible for it to receive the focus? Regards, John Goche On Mon, Oct 3, 2011 at 12:00 PM

Re: [android-developers] Re: ListView and MotionEvent

2011-10-03 Thread John Goche
On Mon, Oct 3, 2011 at 3:57 AM, Studio LFP wrote: > The HTC Hero is fairly old. I keep one around because it's quite slow and > if I can make something function fast on it, it will run exceptionally well > on new hardware. > As a curiosity does it have two way na vigation (just a scrollwheel and

Re: [android-developers] Re: ListView and MotionEvent

2011-10-02 Thread Studio LFP
The HTC Hero is fairly old. I keep one around because it's quite slow and if I can make something function fast on it, it will run exceptionally well on new hardware. On the tablet you can use both a wired and a Bluetooth mouse (I've used a wired mouse and Bluetooth keyboard simultaneously). Yo

Re: [android-developers] Re: ListView and MotionEvent

2011-10-02 Thread John Goche
Thanks, apparently I was able to get it to work perfectly following your advice. What I have not implemented is the code for trackball and joystick devices which seem to generate their own events as described at: http://developer.android.com/reference/android/view/MotionEvent.html Just how old is

Re: [android-developers] Re: ListView and MotionEvent

2011-10-02 Thread Studio LFP
An ACTION_CANCEL is sent in the case where the user puts their finger down on a ListView item (or similar) and then starts to scroll. Since the ListView is using it as a scroll command and your finger may stay inside the view, it sends this to cancel the touch on your view. The ACTION_OUTSIDE w

Re: [android-developers] Re: ListView and MotionEvent

2011-10-02 Thread John Goche
Thank you Steven for your reply, Would you be able to provide some insight on the difference between ACTION_CANCEL and ACTION_UP. I am somewhat fuzzy on the concept. Anyways, I'm going to give it a go. Thanks, John Goche On Sun, Oct 2, 2011 at 11:36 PM, Studio LFP wrote: > You've got it right

[android-developers] Re: ListView and MotionEvent

2011-10-02 Thread Studio LFP
You've got it right. Just make sure you are catching MotionEvent.ACTION_CANCEL and MotionEvent.ACTION_OUTSIDE. Return false in onTouch to allow it to pass to the Click and LongClick, but change your colors in the onTouch. Steven Studio LFP http://www.studio-lfp.com -- You received this messa