On Thu, Aug 6, 2009 at 9:35 AM, Dianne Hackborn<[email protected]> wrote:
> The system automatically converts trackball events into DPAD events if they
> aren't handled by the app.
>
Thank you. But i only see these DPAD defines in KeyEvent, They don't
relate to 'fling' action, right, they just move focus
up/down/left/right?
public static final int KEYCODE_DPAD_UP = 19;
public static final int KEYCODE_DPAD_DOWN = 20;
public static final int KEYCODE_DPAD_LEFT = 21;
public static final int KEYCODE_DPAD_RIGHT = 22;
public static final int KEYCODE_DPAD_CENTER = 23;
And I have looked at Gesture Detector code as well, it only handles:
MotionEvent.ACTION_DOWN, ACTION_MOVE, ACTION_UP, ACTION_CANCEL, I
don't see how Gesture Dectector intercepts any DPAD events or responds
to any trackball events.
Thank you for any more help.
> On Thu, Aug 6, 2009 at 9:11 AM, n179911 <[email protected]> wrote:
>>
>> Hi,
>>
>> In android address book, I can 'fling' with a TrackBall. i.e. the
>> ListView page up/down if I 'fling' with TrackBall (not fling on touch
>> screen).
>> However, when I look at the AddressBook Code or ListView Code, I don't
>> see it implements 'dispatchTrackBall' method.
>>
>> Can you please tell me how is that implemented?
>>
>> Thank you.
>>
>>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails. All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---