Essentially, I'm suggesting that rather than creating an anonymous
TextWatcher class you pull that out into its own class... Then in the
getView() method you create a new instance of that class and set that on
the view.

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


On Mon, Mar 19, 2012 at 3:47 PM, Mark Winchester <mwinches...@gmail.com>wrote:

> 1. SetValue changes the value for the input in the ModeInput class and
> reaches into the native code to change the value in the calculator.
> ChangeValue only effects the ModeInput class.
> 2. I'm not sure that I quite follow you on this one.  Do you know of an
> example that exists somewhere, out there?
>
> -Mark
>
>
> On Thursday, March 15, 2012 3:38:52 PM UTC-5, MagouyaWare wrote:
>
>> A couple things:
>>
>>    1. What do ModeInput.SetValue() and ModeInput.ChangeValue() do?
>>    2. I'm not sure you want to be doing an anonymous TextWatcher class
>>    in your getView() method... I may be wrong on this, but since you are 
>> using
>>    the position parameter that is passed into the getView() method, you may 
>> be
>>    running into issues with that.  It would probably be better to do the
>>    following:
>>       1. Create a nested class in your adapter that implements
>>       TextWatcher
>>       2. Have the constructor take a position parameter
>>       3. Set the text watcher on the text view every time the getView()
>>       method is called, rather than only when the ViewHolder is created.  I 
>> would
>>       probably do that right before returning the View.
>>
>> ModeInput mi = values[position];
>>>
>> Not a biggie, but you never do anything with this...
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/**magouyaware<http://sites.google.com/site/magouyaware>
>>
>>
>> On Thu, Mar 15, 2012 at 2:12 PM, Mark Winchester wrote:
>>
>>> ModeInput
>>
>>
>>  --
> 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