Is there a way to customize DatePicker? This is my layout code.
<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:orientation="vertical"> <DatePicker android:id="@+id/ad_date_picker" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_margin="5dp"/> <TimePicker android:id="@+id/ad_time_picker" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="5dp"/> </LinearLayout> </ScrollView>
In this case, the DatePicker date format is MM-DD-YYYY, and I would like to have it in DD-MM-YYYY, and if it is also possible, I would like to have a short month name instead of a number.
I tried to find how to do this, but to no avail.
Thanks,
Moore
android layout datepicker
Tima
source share