This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 56444 - A small "dot" shows up as value in Android labels when the value is null/empty.
Summary: A small "dot" shows up as value in Android labels when the value is null/empty.
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android (show other bugs)
Version: 2.3.5
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Samantha Houts
URL:
Depends on:
Blocks:
 
Reported: 2017-05-15 09:14 UTC by TR
Modified: 2017-07-12 08:09 UTC (History)
9 users (show)

See Also:
Tags: android, label, fr
Is this bug a regression?: Yes
Last known good build: 2.3.4.231


Attachments

Description TR 2017-05-15 09:14:06 UTC
When using Xamarin.Forms 2.3.5.239 pre3 and has a label with a binding and the value is null/empty, a small "dot" will be displayed as value in Android (not in iOS or UWP). In version 2.3.4.231 there is no "dot" when the value is null/empty.
Comment 1 Paul DiPietro 2017-05-15 14:05:37 UTC
https://github.com/xamarin/Xamarin.Forms/pull/915
Comment 2 anpeng.620 2017-06-22 07:58:10 UTC
Hi , can someone teach me how to fix this on my side ? i am facing this issue as well and my app is going to release in few days time. Thanks for helping !
Comment 3 Samantha Houts 2017-06-22 19:01:28 UTC
Should be fixed on 2.3.5 stable, which is set to release any day now.

You can hack a nasty workaround by setting your empty Labels to " " (a whitespace character).

Thank you!
Comment 6 Saurabh Paunikar 2017-06-30 10:40:13 UTC
I have used following code to set button text as null. Also used xamarin.form version 2.3.5.239 pre5.Bug is not getting reproduce. Kindly suggest if I am missing anything.

ScreenCast link:https://www.screencast.com/t/Av35NdpiatRa


using Android.App;
using Android.Widget;
using Android.OS;

namespace App66
{
    [Activity(Label = "App66", MainLauncher = true, Icon = "@mipmap/icon")]
    public class MainActivity : Activity
    {
       
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById<Button>(Resource.Id.myButton);
            button.Text = null;
        }
    }
}
Comment 7 David Ortinau 2017-06-30 13:33:29 UTC
@Saurabh,

That's Android code and isn't testing Xamarin.Forms. Look at the test reproduction from the Pull Request to see how we are testing it.

https://github.com/xamarin/Xamarin.Forms/blob/298c1e532173d63359767c1555c87dc66d2c9836/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/AndroidHelpText.cs
Comment 8 Neeraj Deshmukh 2017-07-03 07:44:28 UTC
Verified above bug on 2.3.5.256-pre6 , working as expected hence marking this bug as verified.

Build info : - https://gist.github.com/nehaKh/974f772dcb0ebe27698fb6df12041200

Thanks David Ortinau.

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