Thursday, December 16, 2010

[android-developers] Re: Problem related with EditText used in Listview

The solution worked for me.
Only thing to was to add following code in getView
if (attitude_values[position] != null)
{
holder.TextEntry.setText(attitude_values[position]);
}
else {
holder.TextEntry.setText("");
}

On Tue, Dec 14, 2010 at 11:28 PM, Alok Kulkarni <kulsuhas@gmail.com> wrote:
> Apparently , i found this link
> http://stackoverflow.com/questions/4358342/edittext-in-a-list-arent-working-the-way-they-should
> Ill chech if this works,
> Thanks,
> Alok
>
> On 12/14/10, Alok Kulkarni <kulsuhas@gmail.com> wrote:
>> I am using a ListView wherein my listitem.xml contains a TextView and
>> an EditText.
>> If my list length increases and it becomes scrollable then the value
>> which the user had entered in the first EditText in listitem#0 gets
>> reflected in the listitem which has become visible now due to
>> scrolling,
>>
>> for example: if initially listitems 0 to 6 were visible and user
>> enetered "abc" text in the EditText in listitem#0 then when i scroll
>> just one position down, I see text "abc" in the EditText in listitem#7
>>
>> Can someone plz help me out with this?
>> Thanks.
>>
>> Regards,
>> Alok.
>>
>

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate