Re: [android-developers] How to use onFocusChangeListner in the DatePicker

2012-06-14 Thread Justin Anderson
Interesting... I've used OnDateChangedListener() before and never had any
problems with it...

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


On Thu, Jun 14, 2012 at 1:28 PM, Rafael Botelho wrote:

> Thanks, but I already tried the first option (the same happens) and I was
> avoiding the second one, but it is my only scape. Anyway, thanks!!!
>
> On Thu, Jun 14, 2012 at 3:03 PM, Justin Anderson wrote:
>
>> I would probably do one of the following:
>>
>>1. Use the OnDateChagnedListener:
>>
>> http://developer.android.com/reference/android/widget/DatePicker.OnDateChangedListener.html
>>2. Use DatePickerDialog and update components when the dialog finishes
>>
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/magouyaware
>>
>>
>> On Thu, Jun 14, 2012 at 11:44 AM, Rafael Botelho > > wrote:
>>
>>> Because other components will appear depending on the date that is
>>> informed. I don't know if exist some way of get the event of the elements
>>> inside the DatePicker. I looked for but didn't find anything.
>>>
>>> Thanks,
>>> Rafael Botelho
>>>
>>>
>>> On Thu, Jun 14, 2012 at 2:03 PM, Justin Anderson 
>>> wrote:
>>>
 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
>>
>>
>> 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

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

Re: [android-developers] How to use onFocusChangeListner in the DatePicker

2012-06-14 Thread Rafael Botelho
Thanks, but I already tried the first option (the same happens) and I was
avoiding the second one, but it is my only scape. Anyway, thanks!!!

On Thu, Jun 14, 2012 at 3:03 PM, Justin Anderson wrote:

> I would probably do one of the following:
>
>1. Use the OnDateChagnedListener:
>
> http://developer.android.com/reference/android/widget/DatePicker.OnDateChangedListener.html
>2. Use DatePickerDialog and update components when the dialog finishes
>
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Thu, Jun 14, 2012 at 11:44 AM, Rafael Botelho 
> wrote:
>
>> Because other components will appear depending on the date that is
>> informed. I don't know if exist some way of get the event of the elements
>> inside the DatePicker. I looked for but didn't find anything.
>>
>> Thanks,
>> Rafael Botelho
>>
>>
>> On Thu, Jun 14, 2012 at 2:03 PM, Justin Anderson 
>> wrote:
>>
>>> 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
>
>
> 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
>>>
>>
>>
>>
>>  --
>> 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
>

-- 
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] How to use onFocusChangeListner in the DatePicker

2012-06-14 Thread Justin Anderson
I would probably do one of the following:

   1. Use the OnDateChagnedListener:
   
http://developer.android.com/reference/android/widget/DatePicker.OnDateChangedListener.html
   2. Use DatePickerDialog and update components when the dialog finishes


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


On Thu, Jun 14, 2012 at 11:44 AM, Rafael Botelho wrote:

> Because other components will appear depending on the date that is
> informed. I don't know if exist some way of get the event of the elements
> inside the DatePicker. I looked for but didn't find anything.
>
> Thanks,
> Rafael Botelho
>
>
> On Thu, Jun 14, 2012 at 2:03 PM, Justin Anderson wrote:
>
>> 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 > > 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


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

Re: [android-developers] How to use onFocusChangeListner in the DatePicker

2012-06-14 Thread Rafael Botelho
Because other components will appear depending on the date that is
informed. I don't know if exist some way of get the event of the elements
inside the DatePicker. I looked for but didn't find anything.

Thanks,
Rafael Botelho

On Thu, Jun 14, 2012 at 2:03 PM, Justin Anderson wrote:

> 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 
> 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
>>>
>>>
>>> On Wed, Jun 13, 2012 at 6:24 AM, Rafael Botelho >> > 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
>

-- 
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] How to use onFocusChangeListner in the DatePicker

2012-06-14 Thread Justin Anderson
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 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
>>
>>
>> On Wed, Jun 13, 2012 at 6:24 AM, Rafael Botelho 
>> 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

Re: [android-developers] How to use onFocusChangeListner in the DatePicker

2012-06-14 Thread Rafael Botelho
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
>
>
> On Wed, Jun 13, 2012 at 6:24 AM, Rafael Botelho 
> 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

Re: [android-developers] How to use onFocusChangeListner in the DatePicker

2012-06-14 Thread Justin Anderson
Well, for one, your onFocusChange() method is empty...

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


On Wed, Jun 13, 2012 at 6:24 AM, Rafael Botelho 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

[android-developers] How to use onFocusChangeListner in the DatePicker

2012-06-14 Thread Rafael Botelho
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