Friday, March 12, 2010

[android-developers] Re: OnPreferenceClickListener does not fire when using setWidgetLayoutResource

This was simply related to button type controls having FOCUS. If
embededing a button style widget in a preference layout you must set
the widget to focusable:false; this will allow default preference
click behavior

On Feb 24, 8:36 pm, cnich <cnichol...@gmail.com> wrote:
> Using onBindView I can catch the onClick behavior but it does not
> behave as regular preference click
>
> protected void onBindView(View view)
> view.setOnClickListener(this);
>
> On Feb 24, 5:27 pm, cnich <cnichol...@gmail.com> wrote:
>
> > Preferences in PreferenceActivities are clickable and can be set to
> > receive OnPreferenceClickListener messages. If you set
> > Preference.setWidgetLayoutResource then the Preference becomes
> > unclickable.
>
> > The setWidgetLayoutResource reference must contain a button type to
> > become unclickable. I've tried setClickable, setFocusable etc .... but
> > to avail.
>
> > Is there anyway to add a button style widget resource and still allow
> > original click behavior of the preference?

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate