Only one view can have focus at a time.  You'll need to pick one thing to
get key events and handle them there, if you don't want to allow the user to
move focus around themselves.

On Tue, Sep 1, 2009 at 10:45 AM, vanquisher sinner <
vanquisher.sin...@gmail.com> wrote:

>
> I am calling requestFocus() on both views. But only one of the views
> works properly everytime.
> Where should I place the requestFocus() so that either of the views
> can be in focus?
>
> On Sun, Aug 30, 2009 at 5:54 PM, Romain Guy<romain...@google.com> wrote:
> >
> > "Focusable in touch mode" has nothing to do with touch events or touch
> > listeners or padding, etc. Do not use this.
> >
> > On Sun, Aug 30, 2009 at 4:03 PM, vanquisher
> > sinner<vanquisher.sin...@gmail.com> wrote:
> >>
> >> I read that if you set isFocuasbaleInTouchMode  for the view object
> >> then onClickelistener is called.
> >> when I touch one view it works but the other one does not.
> >> Is there a way to increase padding of that view so that touch works on
> >> the view even around a larger radius?
> >>
> >>
> >> On Fri, Aug 28, 2009 at 12:00 PM, Balwinder Kaur (T-Mobile
> >> USA)<balwinder.k...@t-mobile.com> wrote:
> >>>
> >>> A sample of your code and logcat output if there are errors in it
> >>> would be helpful.
> >>>
> >>> Balwinder Kaur
> >>> Open Source Development Center
> >>> ·T· · ·Mobile· stick together
> >>>
> >>> The views, opinions and statements in this email are those of the
> >>> author solely in their individual capacity, and do not necessarily
> >>> represent those of T-Mobile USA, Inc.
> >>>
> >>> On Aug 28, 11:39 am, human android <vanquisher.sin...@gmail.com>
> >>> wrote:
> >>>> I am trying to use touch listener on 2 View objects.
> >>>> I made both objects focussable but it works for one object and does
> >>>> not for the other.
> >>>> Any idea how to solve this?
> >>> >
> >>>
> >>
> >> >
> >>
> >
> >
> >
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time
> > to provide private support.  All such questions should be posted on
> > public forums, where I and others can see and answer them
> >
> > >
> >
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to