I am trying to have a AlertDialog modal with a DatePicker inside of it. However, when I add the DatePicker to the modal in the editor, the bottom dates are cut off:
And sure enough, when running on the emulator, the bottom row of dates are cut off:
I've tried making the padding and margin and even height greater but nothing works.
EDIT: Below is my XML code for the modal with the DatePicker.
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:tools="http://schemas.android.com/tools"
android:layout_height="wrap_content"
android:layout_width="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<DatePicker
android:id="@+id/dose_date_picker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:datePickerMode="spinner"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="8dp" />
</android.support.constraint.ConstraintLayout>
ScrollView
if I'm correct. Did you try scrolling them up / down?ScrollView
under the hood, but I do not have it in aScrollView
. I tried scrolling on the calendar but I am unable to scroll it up/down.