Android Custom Dialog With Scrollview Pushes Buttons Off The Screen
I have a custom dialog with a layout like this:
Solution 1:
Try LinearLayout
instead of the RelativeLayout
Put the buttons in a separate layout and put a weight on the buttons layout.
LinearLayout - top level start, android:layout_weight="0"
LinearLayout with TextViews embeded, android:layout_weight="1"
LinearLayout with ScrollView embeded, android:layout_weight="1"
LinearLayout with Buttons embeded, android:layout_weight="1"
LinearLayout - top level finish, android:layout_weight="0"
Solution 2:
Even though the question is kind of old here is what helped in my case. Hope this may help others as it took me quite a while to down trace.
alertDialogBuilder.setMessage(null);
Post a Comment for "Android Custom Dialog With Scrollview Pushes Buttons Off The Screen"