Ejemplo n.º 1
0
		private void SetupUserInterface ()
		{
			nameLabel = new Label {
				BackgroundColor = Color.Transparent,
				FontAttributes = FontAttributes.None,
				FontFamily = "HelveticaNeue-Light",
				FontSize = 16,
				LineBreakMode = LineBreakMode.NoWrap,
				TextColor = Color.Black,
				VerticalOptions = LayoutOptions.Center
			};

			profilePhoto = new RoundedRectangleImage {
				HeightRequest = 55,
				WidthRequest = 55,
				VerticalOptions = LayoutOptions.Center
			};

			mainLayout = new StackLayout {
				Children = { profilePhoto, nameLabel },
				Orientation = StackOrientation.Horizontal,
				Padding = new Thickness (10, 0, 0, 0)
			};

			View = mainLayout;
		}
Ejemplo n.º 2
0
        private void SetupUserInterface()
        {
            nameLabel = new Label
            {
                BackgroundColor = Color.Transparent,
                FontAttributes  = FontAttributes.None,
                FontFamily      = "HelveticaNeue-Light",
                FontSize        = 16,
                LineBreakMode   = LineBreakMode.NoWrap,
                TextColor       = Color.Black,
                VerticalOptions = LayoutOptions.Center
            };

            profilePhoto = new RoundedRectangleImage
            {
                HeightRequest   = 55,
                WidthRequest    = 55,
                VerticalOptions = LayoutOptions.Center
            };

            mainLayout = new StackLayout
            {
                Children    = { profilePhoto, nameLabel },
                Orientation = StackOrientation.Horizontal,
                Padding     = new Thickness(10, 0, 0, 0)
            };

            View = mainLayout;
        }
Ejemplo n.º 3
0
		private void SetupUserInterface ()
		{
			nameLabel = new Label {
				BackgroundColor = Color.Transparent,
				FontAttributes = FontAttributes.None,
				FontFamily = "HelveticaNeue-Light",
				FontSize = 16,
				LineBreakMode = LineBreakMode.NoWrap,
				TextColor = Color.Black,
				VerticalOptions = LayoutOptions.Center
			};

			profilePhoto = new RoundedRectangleImage {
				HeightRequest = 55,
				WidthRequest = 55,
				VerticalOptions = LayoutOptions.Center
			};

			leftLayout = new StackLayout {
				Children = { profilePhoto, nameLabel },
				Orientation = StackOrientation.Horizontal,
				Padding = new Thickness (10, 0, 0, 0)
			};

			confirmCheckmarkButton = new Image {
				Source = Images.GreenCheckmark,
				HeightRequest = 43.75,
				WidthRequest = 33.75
			};

			denyCheckmarkButton = new Image {
				Source = "DeclineX.png",
				HeightRequest = 27.5,
				WidthRequest = 27.5
			};

			rightLayout = new StackLayout {
				Children = { confirmCheckmarkButton, denyCheckmarkButton },
				Padding = new Thickness (0, 0, 10, 0),
				HorizontalOptions = LayoutOptions.EndAndExpand,
				VerticalOptions = LayoutOptions.Center,
				Spacing = 25,
				Orientation = StackOrientation.Horizontal
			};

			mainLayout = new StackLayout {
				Children = { leftLayout, rightLayout },
				Orientation = StackOrientation.Horizontal
			};

			View = mainLayout;
		}
Ejemplo n.º 4
0
        private void SetupUserInterface()
        {
            nameLabel = new Label {
                BackgroundColor = Color.Transparent,
                FontAttributes  = FontAttributes.None,
                FontFamily      = "HelveticaNeue-Light",
                FontSize        = 16,
                LineBreakMode   = LineBreakMode.NoWrap,
                TextColor       = Color.Black,
                VerticalOptions = LayoutOptions.Center
            };

            profilePhoto = new RoundedRectangleImage {
                HeightRequest   = 55,
                WidthRequest    = 55,
                VerticalOptions = LayoutOptions.Center
            };

            leftLayout = new StackLayout {
                Children    = { profilePhoto, nameLabel },
                Orientation = StackOrientation.Horizontal,
                Padding     = new Thickness(10, 0, 0, 0)
            };

            confirmCheckmarkButton = new Image {
                Source        = Images.GreenCheckmark,
                HeightRequest = 43.75,
                WidthRequest  = 33.75
            };

            denyCheckmarkButton = new Image {
                Source        = "DeclineX.png",
                HeightRequest = 27.5,
                WidthRequest  = 27.5
            };

            rightLayout = new StackLayout {
                Children          = { confirmCheckmarkButton, denyCheckmarkButton },
                Padding           = new Thickness(0, 0, 10, 0),
                HorizontalOptions = LayoutOptions.EndAndExpand,
                VerticalOptions   = LayoutOptions.Center,
                Spacing           = 25,
                Orientation       = StackOrientation.Horizontal
            };

            mainLayout = new StackLayout {
                Children    = { leftLayout, rightLayout },
                Orientation = StackOrientation.Horizontal
            };

            View = mainLayout;
        }