Ejemplo n.º 1
0
        public View GetPropertyLayout(Android.Content.Context context)
        {
            totalWidth                 = (context.Resources.DisplayMetrics.WidthPixels);
            propertylayout             = new LinearLayout(context);
            propertylayout.Orientation = Orientation.Vertical;

            OptionViewLayout();
            maskProperties.ValidationLayout(context, propertylayout, false);
            maskProperties.CultureLayout(context, propertylayout, false);
            maskProperties.HideLayout(context, propertylayout, false);
            maskProperties.PromptLayout(context, propertylayout, false);

            TextView spaceLabel = new TextView(context);

            spaceLabel.LayoutParameters = new FrameLayout.LayoutParams((int)(totalWidth * 0.167), ViewGroup.LayoutParams.WrapContent);

            LinearLayout layout1 = new LinearLayout(context);

            layout1.Orientation = Android.Widget.Orientation.Horizontal;
            layout1.AddView(spaceLabel);
            layout1.AddView(ProprtyOptionsLayout);

            propertylayout.AddView(topProperty);
            propertylayout.AddView(layout1);
            propertylayout.SetBackgroundColor(Color.Rgb(240, 240, 240));
            return(propertylayout);
        }
Ejemplo n.º 2
0
        public View GetPropertyWindowLayout(Context context1)
        {
            bool         isTablet         = SfMaskedEditText.IsTabletDevice(context1);
            LinearLayout gridLinearLayout = null;

            context = context1;
            if (isTablet)
            {
                gridLinearLayout = new LinearLayout(context)
                {
                    Orientation = Android.Widget.Orientation.Vertical
                };

                LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MatchParent, LinearLayout.LayoutParams.WrapContent);

                layoutParams.TopMargin            = 25;
                gridLinearLayout.LayoutParameters = layoutParams;
                gridLinearLayout.SetBackgroundResource(Resource.Drawable.LinearLayout_Border);
            }

            propertylayout             = new LinearLayout(context);
            propertylayout.Orientation = Android.Widget.Orientation.Vertical;

            maskProperties.ValidationLayout(context, propertylayout, true);
            maskProperties.CultureLayout(context, propertylayout, true);
            maskProperties.CloseButtonVisibilityLayout(context, propertylayout, true);
            maskProperties.HideLayout(context, propertylayout, true);
            maskProperties.PromptLayout(context, propertylayout, true);

            if (isTablet)
            {
                gridLinearLayout.AddView(propertylayout);
                return(gridLinearLayout);
            }
            else
            {
                return(propertylayout);
            }
        }