Ok, in that case, why are you wanting to use an OnFocusChangeListener()?
It very well may be that the child elements inside of it are getting the
focus... In which case there is nothing you can do, AFAIK.

What exactly are you trying to accomplish?  If we know what you are wanting
to do at a higher level, we may be able to come up with alternate ways of
doing what you want.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Jun 14, 2012 at 10:52 AM, Rafael Botelho <rafaelbote...@gmail.com>wrote:

> Thanks Justin, I just didn`t put the code because no matter what I put
> inside the method, never is called.
>
> My code:
>
> DatePicker   VdpDate = (DatePicker) findViewById(R.id.dpDate);
>
> VdpDate.**setOnFocusChangeListener(new View.OnFocusChangeListener() {
>     public void onFocusChange(View v, boolean hasFocus) {
>         // Some code here
>     }
> });
>
> Em quinta-feira, 14 de junho de 2012 13h31min06s UTC-3, MagouyaWare
> escreveu:
>
>> Well, for one, your onFocusChange() method is empty...
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/**magouyaware<http://sites.google.com/site/magouyaware>
>>
>>
>> On Wed, Jun 13, 2012 at 6:24 AM, Rafael Botelho 
>> <rafaelbote...@gmail.com>wrote:
>>
>>> I am using a simple DatePicker and I set focuse change listner for
>>> DatePicker, but after I leave the DatePicker nothing happens. I read in
>>> somewhere that Because the DatePicker itself does not get focus, its
>>> children do. Someone can send an example of How I can do that?
>>>
>>> My code:
>>>
>>> DatePicker   VdpDate = (DatePicker) findViewById(R.id.dpDate);
>>>
>>> VdpDate.**setOnFocusChangeListener(new View.OnFocusChangeListener() {
>>>     public void onFocusChange(View v, boolean hasFocus) {
>>>
>>>     }
>>> });
>>>
>>  --
> 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
>

-- 
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

Reply via email to