summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-04-19 00:58:37 -0600
committerJason Smith <jason.smith@xamarin.com>2016-04-18 23:58:37 -0700
commit89a50d4bc1f4aaf83d5f92a28c2a7a96282cc0d3 (patch)
tree677fe7850f6a75d75232cf4d858be33097806df5 /Xamarin.Forms.Platform.Android
parente2d3adcdafa3b1dab50b4556e061b809c4c53cd5 (diff)
downloadxamarin-forms-89a50d4bc1f4aaf83d5f92a28c2a7a96282cc0d3.tar.gz
xamarin-forms-89a50d4bc1f4aaf83d5f92a28c2a7a96282cc0d3.tar.bz2
xamarin-forms-89a50d4bc1f4aaf83d5f92a28c2a7a96282cc0d3.zip
Use style resources when calling SetTextAppearance (#108)
* Use style resources in SetTextAppearance calls * Set to styles which match previous defaults
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r--Xamarin.Forms.Platform.Android/Cells/BaseCellView.cs4
-rw-r--r--Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs2
2 files changed, 3 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.Android/Cells/BaseCellView.cs b/Xamarin.Forms.Platform.Android/Cells/BaseCellView.cs
index 1457075b..7ae8aad5 100644
--- a/Xamarin.Forms.Platform.Android/Cells/BaseCellView.cs
+++ b/Xamarin.Forms.Platform.Android/Cells/BaseCellView.cs
@@ -56,7 +56,7 @@ namespace Xamarin.Forms.Platform.Android
_mainText.SetSingleLine(true);
_mainText.Ellipsize = TextUtils.TruncateAt.End;
_mainText.SetPadding((int)context.ToPixels(15), padding, padding, padding);
- _mainText.SetTextAppearanceCompat(context, global::Android.Resource.Attribute.TextAppearanceListItem);
+ _mainText.SetTextAppearanceCompat(context, global::Android.Resource.Style.TextAppearanceSmall);
using (var lp = new LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent))
textLayout.AddView(_mainText, lp);
@@ -66,7 +66,7 @@ namespace Xamarin.Forms.Platform.Android
_detailText.Ellipsize = TextUtils.TruncateAt.End;
_detailText.SetPadding((int)context.ToPixels(15), padding, padding, padding);
_detailText.Visibility = ViewStates.Gone;
- _detailText.SetTextAppearanceCompat(context, global::Android.Resource.Attribute.TextAppearanceListItemSmall);
+ _detailText.SetTextAppearanceCompat(context, global::Android.Resource.Style.TextAppearanceSmall);
using (var lp = new LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent))
textLayout.AddView(_detailText, lp);
diff --git a/Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs b/Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs
index 0380a31a..4f0853da 100644
--- a/Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs
+++ b/Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs
@@ -29,7 +29,7 @@ namespace Xamarin.Forms.Platform.Android
SetPadding((int)context.ToPixels(15), padding, padding, padding);
_label = new TextView(context);
- _label.SetTextAppearanceCompat(context, global::Android.Resource.Attribute.TextAppearanceListItem);
+ _label.SetTextAppearanceCompat(context, global::Android.Resource.Style.TextAppearanceSmall);
var layoutParams = new LayoutParams(ViewGroup.LayoutParams.WrapContent, ViewGroup.LayoutParams.WrapContent) { Gravity = GravityFlags.CenterVertical };
using (layoutParams)