Bug 22604 - Layout bug on Android ListView with embedded StackLayout
Summary: Layout bug on Android ListView with embedded StackLayout
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.3
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-09-03 13:50 UTC by mstrong64
Modified: 2014-09-23 20:50 UTC (History)
4 users (show)

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

An example solution to reproduce the bug (2.97 MB, application/zip)
2014-09-03 13:50 UTC, mstrong64
ListView on Android (135.19 KB, image/png)
2014-09-03 13:51 UTC, mstrong64
ListView on iOS (91.97 KB, image/png)
2014-09-03 13:52 UTC, mstrong64

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:

Description mstrong64 2014-09-03 13:50:09 UTC
Created attachment 7899 [details]
An example solution to reproduce the bug

When a StackLayout is embedded in a ViewCell/ListView on Android, the width of an element in the cell which is set to expand will incorrectly expand to entire width of the cell, even when the cell contains other elements, pushing those elements off the screen. This does not happen on iOS.

Please see attached XS solution.
Comment 1 mstrong64 2014-09-03 13:51:53 UTC
Created attachment 7901 [details]
ListView on Android
Comment 2 mstrong64 2014-09-03 13:52:42 UTC
Created attachment 7902 [details]
ListView on iOS
Comment 3 Parmendra Kumar 2014-09-04 08:16:01 UTC
I have checked this issue and able to reproduce this issue with given sample in bug description.
And I am also getting the same output as comment 1 and comment 2.

Screencast: http://screencast.com/t/VuAZuQpUBzE
Build Log:https://gist.github.com/saurabh360/806b71a643a37a36a49a

Environment Info:
=== Xamarin Studio ===

Version 5.3 (build 440)
Installation UUID: 1a096c6f-0678-402e-89b2-a2c10f7e80e4
	Mono 3.8.0 ((no/45d0ba1)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000009

=== Apple Developer Tools ===

Xcode 5.1 (5084)
Build 5B130a

=== Xamarin.Mac ===


=== Xamarin.Android ===

Version: 4.16.0 (Business Edition)
Android SDK: /Users/360_macmini/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		3.2    (API level 13)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 77efa3f
Build date: 2014-08-26 07:59:55-0400

=== Build Information ===

Release ID: 503000440
Git revision: accb55419539e512cff857b14b80ec3107996511
Build date: 2014-09-01 08:53:05-04
Xamarin addins: 6dbac4b3a32df080bf98cde838ce89e573a92859

=== Operating System ===

Mac OS X 10.9.4
Darwin ShrutiMac.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
Comment 4 Eric Maupin 2014-09-23 20:50:32 UTC
Fixed for next update.