Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 720
Jomia Avatar asked Nov 29 '10 08:11

Jomia


1 Answers

Example of a DatePicker that is half it's original size.

<DatePicker
   android:id="@+id/datePicker"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:calendarViewShown="false"
   android:scaleX=".5"
   android:scaleY=".5" />
like image 107
Jordan Hochstetler Avatar answered Sep 19 '22 16:09

Jordan Hochstetler