Bug 23113 - Blurred text on Xamarin.Label inside a ViewCell on iOS
Summary: Blurred text on Xamarin.Label inside a ViewCell on iOS
Status: CLOSED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.3
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-09-17 17:17 UTC by Lyall
Modified: 2015-04-02 04:43 UTC (History)
7 users (show)

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


Attachments
Screenshot of ViewCell with blurred text (28.65 KB, image/png)
2014-09-17 17:18 UTC, Lyall
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:
CLOSED FIXED

Description Lyall 2014-09-17 17:17:32 UTC
When using a ViewCell containing a Label, the Label's text is noticeably blurred when compared to the text in any other Xamarin Cell object (TextCell, etc).

See attached screenshot taken from an iPad mini (physical device). The second cell is an object that extends ViewCell.
Comment 1 Lyall 2014-09-17 17:18:30 UTC
Created attachment 8092 [details]
Screenshot of ViewCell with blurred text
Comment 2 Lyall 2014-09-17 17:24:33 UTC
This thread on the Xamarin forums discusses the issue, I've linked straight to a post by Greg which may point to the underlying cause of the issue.

http://forums.xamarin.com/discussion/comment/75932/#Comment_75932
Comment 3 Arpit Jha 2014-09-18 03:31:17 UTC
I have checked this issue and unable to reproduce it.
I tried following steps to reproduce it.
1.Create a Xamarin form application
2.Add a class(.cs) and did some code in it.
3.Run the application.

  class TableViewFormDemoPage : ContentPage
    {
        public TableViewFormDemoPage()
        {
            Label header = new Label
            {
                Text = "Project Details",
                Font = Font.BoldSystemFontOfSize(30),
                HorizontalOptions = LayoutOptions.Center
            };

            TableView tableView = new TableView
            {
                Intent = TableIntent.Menu,
                Root = new TableRoot("TableView Title")
                {
                    new TableSection("Table Section")
                    {
                       new TextCell
                        {
                            Text = "Text Cell",
                            Detail = "With Detail Text",
                            DetailColor=Color.White,
                        },                                          
                        new ViewCell
                        {
                            View = new Label
                            {
                                Text = "A View Cell can be anything you want!",
                                TextColor=Color.Blue
                            },                            
                        }

                        
                    }
                }
            };

            // Accomodate iPhone status bar.
            this.Padding = new Thickness(10, Device.OnPlatform(20, 0, 0), 10, 5);

            // Build the page.
            this.Content = new StackLayout
            {
                Children = 
                {
                    header,
                    tableView
                }
            };
        }
    }

I observed that label text inside viewcell working fine as expected.

Let me know if I missed anything to reproduce it.

Could you please provide us Sample project with build and environment info, So that I can able to reproduce at my end

Screencast regarding same:
http://www.screencast.com/t/9d48SyV1

Environment info:
VS 2013 professional update 3
XVS 3.5.58.0
Comment 4 Sabina Moisa 2015-03-26 13:51:26 UTC
The blurring is still present in a custom ViewCell. 

What you missed is that you did not use a StackLayout in your code, just like the one in the Xamarin forum thread.

Your View is a Label, but please try and make your view a StackLayout.
Comment 5 Arpit Jha 2015-03-27 03:24:10 UTC
As per Comment 4 I implemented stacklayout in a view but still getting same.

Could you Plase provide us sample project,Ide log,Xamarin.Forms version So that we can able to reproduce this issue at our end

Code snippent : https://gist.github.com/Arpit360/4d31acf31f34783ef02f

Environment Info:
Xamarin.Forms version: 1.3.1.0
Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

Xamarin   3.9.525.0 (ce1c740)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.20.0.38 (38ac51a9d0866c7726a7484d82632c82c8221594)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.8.1.0 (61fa2c6e0f2ef51eb98b8810de13b4469f379cc7)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified
Comment 6 Sabina Moisa 2015-04-02 04:17:37 UTC
I did not get to send you the requested sample code and info, but after the latest Xamarin.Forms update (1.4.1.6349) the blurring is gone. The labels are sharp. In my opinion, the bug may be marked as fixed.
Comment 7 Arpit Jha 2015-04-02 04:42:35 UTC
As per comment 6 with latest Xamarin.Forms(1.4.1.6349) bug has been fixed .

Hence I am closing this issue.