If you subclass it you could see if you have access to DatePicker's EditText member... I'm not sure you will, but if you do, you would then be able to set whether or not it is enabled.
The buttons should still be able to set the value of the EditText, but then the user wouldn't be able to directly edit that field. If not, then I think you would have to write your own class for it... ---------------------------------------------------------------------- There are only 10 types of people in the world... Those who know binary and those who don't. ---------------------------------------------------------------------- On Wed, Mar 10, 2010 at 3:40 AM, djdamage06 <[email protected]> wrote: > Hello everybody, > > Is it possible to disable the edition of fields in DatePicker ? Indeed > when I touch on the editable box in the DatePicker, the keyboard > appears... And I don't want this ! > > Someone have an idea ? > > > Thanks a lot for your response :) > > ---------------------------------------------------- > > Bonjour à tous, > > Existe-t-il un moyen de désactiver l'édition (et donc l'apparition du > clavier) dans les champs d'un DatePicker ? En effet le fait que le > clavier apparaisse lorsqu'on décide de n'appuyer ni sur + ni sur - > mais directement dans le champ fait que ma layout est toute > "bordélisée"... > > Certes je pourrais anticiper ce mouvement par une Scrollbar mais c'est > vraiment pas mon but... > > Quelqu'un a une idée ? > > Merci d'avance pour vos réponses smile > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow at > http://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > [email protected]<android-beginners%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

