Jomia Jomia - 5 months ago 16
Android Question

Resizing of DatePicker in android

How can I reduce the size (height and width) of a DatePicker? Is there any built-in method available for this?

Answer

No. You cannot reduce the size of a view beyond their minimum size. Using wrap_content ensures that the DatePicker is just big enough to enclose its contents.

<DatePicker
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
/>
Comments