Bonjour,
Je n'arrive pas a obtenir un DatePicker qui ne lag pas lorsque "on scroll les dates" dans mon application, alors que dans une app que j'ai téléchargé, le datePicker ne lag pas du tout. Sur le même téléphone.
J'ai créé une application vierge (Blank Activity) et utilisé ce code xml:
Quels sont les raisons qui pourraient ralentir le datePicker ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <DatePicker android:layout_width="wrap_content" android:layout_height="wrap_content" android:calendarViewShown="false" android:id="@+id/datePicker" /> </LinearLayout>
Partager