From b2ad3e53a8ae03536cf9071b0bd5d0207ee2f10c Mon Sep 17 00:00:00 2001 From: Paul DiPietro Date: Mon, 11 Apr 2016 09:50:28 -0700 Subject: Enable CS0618 warnings as errors (#72) CS0618 occurs when using an obsolete property or method. https://msdn.microsoft.com/en-us/library/x5ye6x1e.aspx --- Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs') diff --git a/Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs b/Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs index f94709d0..c1ae1911 100644 --- a/Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs +++ b/Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs @@ -29,7 +29,9 @@ namespace Xamarin.Forms.Platform.Android SetPadding((int)context.ToPixels(15), padding, padding, padding); _label = new TextView(context); +#pragma warning disable 618 _label.SetTextAppearance(context, global::Android.Resource.Attribute.TextAppearanceListItem); +#pragma warning restore 618 var layoutParams = new LayoutParams(ViewGroup.LayoutParams.WrapContent, ViewGroup.LayoutParams.WrapContent) { Gravity = GravityFlags.CenterVertical }; using (layoutParams) -- cgit v1.2.3