I want to use the fluid interface of AlertDialog.Builder but when I get to the point of adding my DismissListener and ShowListener I have to break out and add it to the dialog object after I do my create() on the builder. Does anyone know why they're not on there? I can't extend it because of the private P member… It's not the end of the world or anything, I'm just curious why it's not there.
Android – Why does AlertDialog.Builder not have setOnDismissListener or setOnShowListener methods
androidandroid-alertdialog
Related Topic
- Android – Why does AlertDialog.Builder(Context context) only accepts Activity as a parameter
- Android – Dialog throwing “Unable to add window — token null is not for an application” with getApplication() as context
- Java – Why doesn’t RecyclerView have onItemClickListener()
- Android 8: Cleartext HTTP traffic not permitted
Best Answer
Have You Tried this method..