Re: [android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2011-01-07 Thread Dianne Hackborn
Yes you do, it is not in the SDK. On Thu, Jan 6, 2011 at 11:00 PM, MerlinBG merli...@gbg.bg wrote: By public I mean included in the public API - not internal. To reuse it, not to copy/duplicate it. Thanks for the link, I do use Google quite successful :) The question was more like do we

Re: [android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2011-01-07 Thread MerlinBG
Thank you. -- 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

[android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2011-01-06 Thread MerlinBG
I see this thread is more than an year old. Any chance to have the NumberPicker public by now? -- 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

Re: [android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2011-01-06 Thread Kumar Bibek
Dig in the source code. What do you mean by public here? http://www.google.com/codesearch/p?hl=en#uX1GffpyOZk/core/java/android/widget/NumberPicker.javaq=NumberPicker%20android%20javasa=Ncd=1ct=rc Use Google code search. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu,

Re: [android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2011-01-06 Thread John Lussmyer
I gave up and wrote my own that seems to work well. XML Configurable, doesn't create gobs of temp objects. http://casadelgato.com/content/numberpicker On Thu, Jan 6, 2011 at 10:40 AM, Kumar Bibek coomar@gmail.com wrote: Dig in the source code. What do you mean by public here?

Re: [android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2011-01-06 Thread MerlinBG
By public I mean included in the public API - not internal. To reuse it, not to copy/duplicate it. Thanks for the link, I do use Google quite successful :) The question was more like do we still need to duplicate existing code, or this changed during the year since this topic is posted. --

[android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2009-02-10 Thread Beshoy
Then how else can this be accomplished? On Feb 7, 10:06 pm, Dianne Hackborn hack...@android.com wrote: DO NOT DO THIS. See the word internal in there?  That means internal.  Do not touch.  Your code will break in the future.  In fact some platform engineer just may go rename that class

[android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2009-02-10 Thread Mark Murphy
Beshoy wrote: Then how else can this be accomplished? As I wrote earlier in this thread: The source to it is probably available on source.android.com. Clone your own until they open that one up in the SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the

[android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2009-02-10 Thread clark
Can the google developers please start bringing these widgets out to the public API? Something like a number picker widget seems too common for GUIs that it be kept internal. I believe there was also the slider widget that was being kept internal. Of course I'm probably ignorant as to why this

[android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2009-02-07 Thread $§Kalle§$
setCurrent to set values works: --- try { Method m = c.getMethod(setCurrent, int.class); m.invoke(o, mDauer%60); } catch (Exception e) { Log.e(, e.getMessage()); } --- But how to get values? Any idea? On 4 Feb., 18:43,

[android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2009-02-07 Thread Dianne Hackborn
DO NOT DO THIS. See the word internal in there? That means internal. Do not touch. Your code will break in the future. In fact some platform engineer just may go rename that class for no reason at all and break your code. 2009/2/4 solomonk denis.solone...@gmail.com No need to clone it if

[android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2009-02-04 Thread solomonk
No need to clone it if you really don't want to. You can use it in XML layot like com.android.internal.widget.NumberPicker android:id=@+id/picker android:layout_width=wrap_content android:layout_height=wrap_content/ and then use reflection to set settings: Object o =

[android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2009-01-28 Thread Mark Murphy
Will wrote: Setting a breakpoint when a DatePickerDialog is open on the emulator's screen shows a com.android.internal.widget.NumberPicker for month, year, and date (1 number picker each for a total of three NumberPickers). It looks like the same widget used for a time picker; based on the

[android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2009-01-28 Thread Will
Setting a breakpoint when a DatePickerDialog is open on the emulator's screen shows a com.android.internal.widget.NumberPicker for month, year, and date (1 number picker each for a total of three NumberPickers). It looks like the same widget used for a time picker; based on the name I'm sure it