summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/Cells
diff options
context:
space:
mode:
authorChris King <kingces95@gmail.com>2016-03-25 13:53:19 -0700
committerChris King <kingces95@gmail.com>2016-03-25 13:53:19 -0700
commitb3365b7f7db2ab9505d9f0c704f86dd3b24b0caa (patch)
tree3e9c78ed3397f34d54daed530da2a7669c7f63b4 /Xamarin.Forms.Platform.Android/Cells
parent03c84382c7bfa6d8712e07dfa48e569f9a9b66a7 (diff)
downloadxamarin-forms-b3365b7f7db2ab9505d9f0c704f86dd3b24b0caa.tar.gz
xamarin-forms-b3365b7f7db2ab9505d9f0c704f86dd3b24b0caa.tar.bz2
xamarin-forms-b3365b7f7db2ab9505d9f0c704f86dd3b24b0caa.zip
Reformat using statements
Diffstat (limited to 'Xamarin.Forms.Platform.Android/Cells')
-rw-r--r--Xamarin.Forms.Platform.Android/Cells/BaseCellView.cs10
-rw-r--r--Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs4
2 files changed, 7 insertions, 7 deletions
diff --git a/Xamarin.Forms.Platform.Android/Cells/BaseCellView.cs b/Xamarin.Forms.Platform.Android/Cells/BaseCellView.cs
index 7855b01e..46959c08 100644
--- a/Xamarin.Forms.Platform.Android/Cells/BaseCellView.cs
+++ b/Xamarin.Forms.Platform.Android/Cells/BaseCellView.cs
@@ -46,7 +46,7 @@ namespace Xamarin.Forms.Platform.Android
RightMargin = 0,
Gravity = GravityFlags.Center
};
- using(imageParams)
+ using (imageParams)
AddView(_imageView, imageParams);
var textLayout = new LinearLayout(context) { Orientation = Orientation.Vertical };
@@ -56,7 +56,7 @@ namespace Xamarin.Forms.Platform.Android
_mainText.Ellipsize = TextUtils.TruncateAt.End;
_mainText.SetPadding((int)context.ToPixels(15), padding, padding, padding);
_mainText.SetTextAppearance(context, global::Android.Resource.Attribute.TextAppearanceListItem);
- using(var lp = new LayoutParams(ViewGroup.LayoutParams.FillParent, ViewGroup.LayoutParams.WrapContent))
+ using (var lp = new LayoutParams(ViewGroup.LayoutParams.FillParent, ViewGroup.LayoutParams.WrapContent))
textLayout.AddView(_mainText, lp);
_detailText = new TextView(context);
@@ -65,12 +65,12 @@ namespace Xamarin.Forms.Platform.Android
_detailText.SetPadding((int)context.ToPixels(15), padding, padding, padding);
_detailText.Visibility = ViewStates.Gone;
_detailText.SetTextAppearance(context, global::Android.Resource.Attribute.TextAppearanceListItemSmall);
- using(var lp = new LayoutParams(ViewGroup.LayoutParams.FillParent, ViewGroup.LayoutParams.WrapContent))
+ using (var lp = new LayoutParams(ViewGroup.LayoutParams.FillParent, ViewGroup.LayoutParams.WrapContent))
textLayout.AddView(_detailText, lp);
var layoutParams = new LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent) { Width = 0, Weight = 1, Gravity = GravityFlags.Center };
- using(layoutParams)
+ using (layoutParams)
AddView(textLayout, layoutParams);
SetMinimumHeight((int)context.ToPixels(DefaultMinHeight));
@@ -118,7 +118,7 @@ namespace Xamarin.Forms.Platform.Android
if (view != null)
{
- using(var layout = new LayoutParams(ViewGroup.LayoutParams.WrapContent, ViewGroup.LayoutParams.FillParent))
+ using (var layout = new LayoutParams(ViewGroup.LayoutParams.WrapContent, ViewGroup.LayoutParams.FillParent))
AddView(view, layout);
AccessoryView = view;
diff --git a/Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs b/Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs
index c0206f1e..f94709d0 100644
--- a/Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs
+++ b/Xamarin.Forms.Platform.Android/Cells/EntryCellView.cs
@@ -32,7 +32,7 @@ namespace Xamarin.Forms.Platform.Android
_label.SetTextAppearance(context, global::Android.Resource.Attribute.TextAppearanceListItem);
var layoutParams = new LayoutParams(ViewGroup.LayoutParams.WrapContent, ViewGroup.LayoutParams.WrapContent) { Gravity = GravityFlags.CenterVertical };
- using(layoutParams)
+ using (layoutParams)
AddView(_label, layoutParams);
EditText = new EntryCellEditText(context);
@@ -43,7 +43,7 @@ namespace Xamarin.Forms.Platform.Android
EditText.BackButtonPressed += OnBackButtonPressed;
//editText.SetBackgroundDrawable (null);
layoutParams = new LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.WrapContent) { Width = 0, Weight = 1, Gravity = GravityFlags.FillHorizontal | GravityFlags.Center };
- using(layoutParams)
+ using (layoutParams)
AddView(EditText, layoutParams);
}