How to setOnTouchListener() on a ListPreference?
Handling onTouchEvent on a view is straightforward as every view has the setOnTouchListener() method to do just that. Alas, although ListPreference is a view, it isn't defined in a layout XML, and thus can't be accessed via findViewById(). So... I don't seem to figure out how to setOnTouchListener() for it. My idea was to get a reference to it in PreferenceActivity's onCreate(), then getDialog(). getCurrentFocus() but at that particular moment in time, it has no focus and not even a dialog (getDialog() returns null, confirmed). Any idea how to work around this? Use