how to place multiple linear layouts in custom dialogs?

The LinearLayout that wraps your ScrollView is set to “wrap_content” in height which pushes your buttons out of screen the bigger your list gets.

I’d suggest to use ConstraintLayout, which allows you to position your views relative to each other. For example “buttons always aligned on bottom of parent, ScrollView always above buttons and below parent’s top”

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top