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

