4
有没有办法自定义DatePicker?这是我的布局代码。自定义DatePicker。 Android
<?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>
在这种情况下的DatePicker的日期格式为MM-DD-YYYY,我想有它在DD-MM-YYYY,如果它也有可能,我想有一个月的短名称而不是数字。
我试过找,怎么做,但没有成功。
谢谢
穆尔
试试这些datepicker http://viswanathl.blogspot.in/2014/02/custom-calendar-in-android.html – 2014-02-13 14:03:40