I am trying to implement a subclass of ListPreference and although its constructor called (when displayed), its overriden onBindDialogView is not.
public MyListPreference(Context context, AttributeSet attrs) { super(context, attrs); // TODO Auto-generated constructor stub Log.v(TAG, "MyListPreference constructed."); } @Override protected void onBindDialogView(View view) { super.onBindDialogView(view); Log.v(TAG, "onBindDialogView called"); }
Why is this happening? What am I missing?
Update . I set the log message to onCreateDialogView () and also called.
Only onBindDialogView () , which is not called.
Why? What are the conditions for calling this callback?
source share