I have a custom dialog box. Inside it is a HorizontalScrollView , inside of which there is a TextView , the text of which dynamically changes.

When the text is small, the width of the window is like a normal dialogue When text is added, instead of scrolling working, the width of the dialog box increases.

How to ban this behavior? Half a day I killed it, apparently in Android it can not be done or am I wrong?

    1 answer 1

    The solution, unfortunately, is only one thing: do not use HorizontalScrollView in dialogs. These are flaws in the very rendering of Android.