How can I get on click event on PreferenceCategory's tilte?

nguyencobap

I tried but it not called OnPreferenceClickListener. Seem like it only works with normal Preference, not PreferenceCategory.

   PreferenceCategory advanceScreen = (PreferenceCategory) findPreference("pref_category_advanced");

    advanceScreen.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
                @Override
                public boolean onPreferenceClick(Preference preference) {
                    return false;
                }
            });
Louis

Preference categories are not clickable - so they won't receive click events, or show a ripple - is there a reason you want a category to be clickable?

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How I can get a click event

How can I get the click event inside an innerHTML?

Highcharts - How can I get the nearest point on click event

How can i get mouse click event element in cocoa

How can I get selected text on a element click event?

how can i prevent nested list's click event

PreferenceFragmentCompat has padding on PreferenceCategory that I can't get rid of

How can I click a dropdown-item button in html code, then get the text of the button in javascript on click event?

How can I get old value in input's onChange event?

How can I add click event to kendoGridCellTemplate

How can I trigger a JavaScript event click

How can I delay a click to scroll event?

How I get menu click event

Can I get an event if i click outside some div?

How can I combine the callback of the click event with the callback of the keydown event?

how to get date and tilte onclick title in full calender

How can I get a popped tooltip at exactly where the click event happens?

UWP How can i get the click event of notification from notification history?

md-paginator how i can get the next or prev click event

jQuery: How can I get a click event to trigger for all elements with identical IDs?

How can I get the click event (single, double, long) in react native (expo)?

How can I get the parent (Expander control in this case) of my DataTemplate in a Click Event?

Leaflet.js GeoJson File: How I can get layer name on click event

jQuery UI Sortable -- How can I cancel the click event on an item that's dragged/sorted?

I can't seem to get the text to update after the click event

how to get the Linkbutton's text to string type in it's Click event

How i can get the right selector on Click?

How can i get the hasClass of click target?

How can I get this click to continually happen?