It still can't work.

It says "Set whether this view can receive focus while in touch mode.
Setting this to true will also ensure that this view is focusable."

I think my view is not "in touch mode", so how to set my view with
touch mode? is it right?



2010/4/19 Robert Green <[email protected]>:
> No,
>
> Don't override it in your view.  Call it from your view in the
> constructor.  setFocusableInTouchMode(true) is what you want to call.
>
> On Apr 19, 1:40 am, a a <[email protected]> wrote:
>> I add
>>
>>                 android:focusableInTouchMode="true"
>> in my xml
>>
>> and try to override the
>>
>>         @Override
>>         public void setFocusableInTouchMode(boolean focusableInTouchMode) {
>>
>>                 Log.d("harvey", "setFocusableInTouchMode");
>>         }
>> But still can work when touch the screen, what' wrong?
>>
>> --
>> 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 
>> athttp://groups.google.com/group/android-developers?hl=en
>
> --
> 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

-- 
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

Reply via email to