you are using e.position... I think that's your problem.

I don't think that's the same as getPositionForView


jon?

On Mon, Jul 30, 2012 at 3:41 PM, Sayed Arian Kooshesh <koosh...@gmail.com>wrote:

> I need to see your code for ActiveCallsAdapter
>
>
> Android only keeps 7 or 8 views (or such) around and reuses them to
> conserve memory. One of the hardest learning curves (or first rather) of
> android programming is figuring this out and know that you pretty much have
> to do work to let android know which view to show. Please pastebin
>
> ActiveCallsAdapter  i poked around in your skydrive and couldn't find it.
>
>
>
>
> On Wed, Jul 25, 2012 at 9:58 AM, Stephan Steiner <
> stephan.stei...@gmail.com> wrote:
>
>> I have a listview that I'm populating at runtime - and I want a listview
>> item
>> to expand upon click (using a ViewStub).
>>
>> And I have this strange thing happening - if I enter the Activity showing
>> the ListView, click on any item in the ListView except the last one, it
>> expands as desired, but the last item in the list disappears.
>>
>> If however, you click on the last item on the list while it is visible, it
>> does not expand.
>>
>> I've written a small sample that allows to reproduce this issue - it
>> starts
>> with an activity that adds a new ListView item and changes to the
>> ListView.
>> Inside the ListView you have the expansion mechanism, plus the ability to
>> remove an item (End Call). I realize the action bar isn't perfect (at
>> times
>> it happens that it doesn't show my context options) but that's okay, I'm
>> only interested in the disappearing last item and why I cannot expand the
>> last item (even though in code everything works.. it just never shows up).
>>
>> I've uploaded the fully working sample here:
>> https://skydrive.live.com/?cid=EAF6A98542EF6194&id=EAF6A98542EF6194!132
>> (latest zip file).
>>
>>
>>
>> --
>> View this message in context:
>> http://mono-for-android.1047100.n5.nabble.com/dynamic-listview-item-expansion-using-ViewStub-selectively-not-working-tp5711026.html
>> Sent from the Mono for Android mailing list archive at Nabble.com.
>> _______________________________________________
>> Monodroid mailing list
>> Monodroid@lists.ximian.com
>>
>> UNSUBSCRIBE INFORMATION:
>> http://lists.ximian.com/mailman/listinfo/monodroid
>>
>
>
>
> --
> Extreme Knowledge is not something for which he programs a computer but
> for which his computer is programming him.
>
> -Wozniak
>



-- 
Extreme Knowledge is not something for which he programs a computer but for
which his computer is programming him.

-Wozniak
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to