Tuesday, October 3, 2023

Android Custom AlertDialog text get cut off

The question was already solved in the comments, but I will add an answer for completeness and to show that it worked for me, too.

For an AlertDialog with a custom view, don't use the .setMessage line. Removing the following line in my project caused the buttons to stop getting clipped.

.setMessage("This is my message")


references:

https://stackoverflow.com/questions/14003243/buttons-of-alert-dialog-are-cut-off

No comments:

Post a Comment