[android-developers] Date Picker using xml layout - problem in android app

2011-07-28 Thread Sivasankar K
i have some problems in using the date picker from xml layout.

in my app when the user clicks a text view a custom dialog box opens. In the
layout of the custom dialog box i am showing a date picker which i have
place in my xml file. When it appears in the app i want a particular date to
be viewed, for example as 01 Jan 1950. Every time it opens it is showing the
present date only.

In my dialog box i have a set and cancel buttons. The Cancel button cancels
the dialog box where as when i click the Set button i want the current date
to be stored to a String.

In another activity of my app in a custom dialog box i want to show a date
picker only with the year columns, i dont need the date and month columns.
How to get it, please help me friends

-- 
K Siva Sankar

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Date Picker using xml layout - problem in android app

2011-07-28 Thread TreKing
On Thu, Jul 28, 2011 at 2:33 AM, Sivasankar K sivasanka...@greatinnovus.com
 wrote:

 When it appears in the app i want a particular date to be viewed, for
 example as 01 Jan 1950. Every time it opens it is showing the present date
 only.


Are you setting the date to display ... ?


 In my dialog box i have a set and cancel buttons. The Cancel button cancels
 the dialog box where as when i click the Set button i want the current date
 to be stored to a String.


OK.


 In another activity of my app in a custom dialog box i want to show a date
 picker only with the year columns, i dont need the date and month columns.
 How to get it, please help me friends


Read the documentation for this widget. If there is no indication that you
can remove those columns, use another widget that allows for single-value
editing or make your own. It's not that hard.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en