android - How to close AlertDialog with a mouse click? -


I have a alertcard with a little information about my application and without it I Close any button, just click on a mouse click on my alert dialog Is it possible to do this?

You can use

  mAlertDialog.setCanceledOnTouchOutside (true) ;   

If you click outside the dialogue, it will be rejected.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -