gibt es die Möglichkeit, einen DatePicker anzupassen? Das ist mein Layout-Code.Anpassen 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>
In diesem Fall wird das Datumsformat des Datepicker ist MM-DD-YYYY und ich möchte es in DD-MM-YYYY haben, und wenn es auch möglich ist, würde ich gerne Monat Kurznamen haben anstelle der Nummer.
Ich habe versucht zu finden, wie es geht, aber ohne Erfolg.
Danke,
Mur
Versuchen Sie diese Art von Datepicker http://viswanathl.blogspot.in/2014/02/custom-calendar-in-android.html –