Whant I want to do is :everytime when user change the DatePicker
value, it will call one method to do something. so For DatePicker, can
I set focus change listener for it's children, or I have to use
"onDateChangedListener"? When "onDateChangedListener" will be called,
once user change it's children's value?

On Oct 2, 11:34 pm, Romain Guy <[email protected]> wrote:
> Because the DatePicker itself does not get focus, its children do.
>
>
>
> On Fri, Oct 2, 2009 at 8:29 AM, Kaijun Meng <[email protected]> wrote:
> > I set focuse change listner for DatePicker, but after I leave the
> > DatePicker, select option in RadioGroup, it seems DatePicker still have the
> > focus and the listner never be invoked. why?
> > here are some code:
>
> > DatePicker dpk = (DatePicker) findViewById(R.id.DatePicker01);
> > dpk.setOnFocusChangeListener(focusChangeListner);
>
> > .....
> > View.OnFocusChangeListenerfocusChangeListner = new
> > View.OnFocusChangeListener(){
>
> >         public void   onFocusChange(View v,boolean hasFocus){
> >             Log.d("PregnancyWidget", "OnFocusChangeListner invoked!");
> >              ....some logic
> >         }
> > };
>
> > I can not see "onFocusChangeListner invoked" in DDMS log. Please help me!
>
> --
> Romain Guy
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to