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
URL:
Depends on:
Blocks:
 
Reported: 2017-09-28 11:15 UTC by Saurabh Paunikar
Modified: 2017-11-07 07:26 UTC (History)
5 users (show)

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


Attachments
Attached IDE logs (15.59 KB, application/x-zip-compressed)
2017-09-28 11:15 UTC, Saurabh Paunikar
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 for Bug 59814 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:
Status:
NEW

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.

===============================================================

Steps:
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


===============================================================

Environment:

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

Installed Version: Enterprise

Xamarin   4.7.10.6 (ac395c3ba)

Xamarin.Android   8.0.0.23 (5257e43)

Xamarin.iOS   11.2.0.8 (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" />
				</ContentView>
			</StackLayout>
		</StackLayout>
Comment 5 Alan McGovern 2017-10-05 14:22:55 UTC
Can you attach the project you're working with?