Bug 6554 - dynamic listview item expansion using ViewStub - selectively not working
Summary: dynamic listview item expansion using ViewStub - selectively not working
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.2.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-08-16 08:40 UTC by steiner
Modified: 2013-05-22 15:46 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
fully working sample to reproduce the issue (28.49 KB, application/x-zip-compressed)
2012-08-16 08:40 UTC, steiner
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description steiner 2012-08-16 08:40:22 UTC
Created attachment 2361 [details]
fully working sample to reproduce the issue

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).
Comment 1 Miguel de Icaza [MSFT] 2013-05-22 15:46:22 UTC
Hello,

For Android programming questions, let me suggest that our forums or StackOverflow are better places to ask questions about how to do certain things with the API.

Bugzilla is for tracking bugs in the product.