Is there a way to get the positive button of a DialogPreference in any of its events?

I would like to disable it initially, and make it enabled once a EditText validates.

Edit
Report