Bug 59814 - [VS 2015] Images do not render correctly in the Android view of Forms Previewer
Summary: [VS 2015] Images do not render correctly in the Android view of Forms Previewer
Status: NEW
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Xamarin.Forms Previewer (show other bugs)
Version: 4.7.0 (15.4)
Hardware: PC Windows
: --- normal
Target Milestone: 15.4 SR1
Assignee: Bugzilla
Depends on:
Reported: 2017-09-28 11:15 UTC by Saurabh Paunikar
Modified: 2017-11-07 07:26 UTC (History)
5 users (show)

See Also:
Tags: Globallogic
Is this bug a regression?: No
Last known good build:

Attached IDE logs (15.59 KB, application/x-zip-compressed)
2017-09-28 11:15 UTC, Saurabh Paunikar

Description Saurabh Paunikar 2017-09-28 11:15:23 UTC
Created attachment 24984 [details]
Attached IDE logs

Xamarin logo is not displayed on android previewer when Rebuild option is selected from xamarin previewer in Master/Detail PCL project. logo is displayed correctly in iOS previewer.


1. Create Master/Detail PCL project.
2. Without Building the project, open AboutPage.xaml from Views folder
3. Open Xamarin Forms Previewer
4. Click on Rebuild option available on Xamarin Forms Previewer
5. Wait still project builds and Preview renders
6. Observe Android and iOS previewer

Actual: Xamarin logo is not displayed on android previewer

Expected: Xamarin logo should displayed on android previewer



Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.7.02053

Installed Version: Enterprise

Xamarin (ac395c3ba)

Xamarin.Android (5257e43)

Xamarin.iOS (9a9f054)

Detailed build Info: https://gist.github.com/saurabh-paunikar/2ec11234e03ad14e7ae9311eb69eb91e


ScreenCast Link: https://www.screencast.com/t/TC5qWcCBJ

Other Info:
Earlier Bug 59059 is added as Rebuild option available on xamarin previewer was not working
Link: https://bugzilla.xamarin.com/show_bug.cgi?id=59059

Issue got fixed but when preview is displayed xamarin logo is not displayed now.As we were not able to check this scenario earlier marking regression status as NO. 


Attaching IDE logs
Comment 1 Luis Aguilera 2017-09-28 12:53:59 UTC
as this is a cosmetic issue, and we're virtually out of time for 15.4, I'm moving this to 15.5
Comment 2 Alan McGovern 2017-10-02 11:23:51 UTC
This is not a cosmetic issue - this is a bug where android renderer misrenders xaml. We'll need to investigate what the actual issue is and decide if it's appropriate to backport the fix.
Comment 3 Alan McGovern 2017-10-02 12:54:32 UTC
Saurabh, which resource file is responsible for providing the Xamarin image? Neither the iOS or Android project seem to ship one of those by default so I don't understand how you are seeing this at all!
Comment 4 Saurabh Paunikar 2017-10-04 05:08:20 UTC
Hi Alan,

When I created Master/Detail PCL project, A xamarin logo image is available on location AppName\AppName.UWP\xamarin_logo.png.
The code responsible for renderring this image is available in AboutPage.xaml 

	<StackLayout BackgroundColor="{StaticResource Accent}" VerticalOptions="FillAndExpand" HorizontalOptions="Fill">
			<StackLayout Orientation="Horizontal" HorizontalOptions="Center" VerticalOptions="Center">
				<ContentView Padding="0,40,0,40" VerticalOptions="FillAndExpand">
					<Image Source="xamarin_logo.png" VerticalOptions="Center" HeightRequest="64" />
Comment 5 Alan McGovern 2017-10-05 14:22:55 UTC
Can you attach the project you're working with?

Note You need to log in before you can comment on or make changes to this bug.