示例#1
0
        public override TextView Create(IViewHierarchyBuilder builder)
        {
            //This is to mimic iOS UILabel behavior which makes more sense as a default
            var view = (TextView)base.Create(builder);

            view.Gravity = Android.Views.GravityFlags.CenterVertical;
            return(view);
        }
示例#2
0
        public override Button Create(IViewHierarchyBuilder builder)
        {
            //This is to mimic iOS UIButton behavior which makes more sense as a default
            var button = (Button)base.Create(builder);

            button.SetAllCaps(false);
            return(button);
        }
示例#3
0
 public ViewHierarchy(object root, IViewHierarchyBuilder builder)
 {
     Assert.Argument(root, nameof(root)).NotNull();
     Assert.Argument(builder, nameof(builder)).NotNull();
     _root    = root;
     _builder = builder;
     Build();
 }
示例#4
0
            public override QView CreateGroupView(int groupPosition, IViewHierarchyBuilder builder)
            {
                var header = builder.MakeView <TextViewWithIcon>();

                Theme.FormHeader(header);
#if __ANDROID__
                header.LayoutParameters.Width = LayoutParams.MatchParent;
#endif
                return(new QView(header));
            }
 public static T MakeView <T>(this IViewHierarchyBuilder builder) where T : View
 {
     return((T)builder.MakeView(typeof(T)));
 }
示例#6
0
 public abstract QView CreateGroupView(int group, IViewHierarchyBuilder builder);
示例#7
0
 public abstract QView CreateChildView(int group, int child, IViewHierarchyBuilder builder);
示例#8
0
 public GroupedListContent(IViewHierarchyBuilder builder)
 {
     Assert.Argument(builder, nameof(builder)).NotNull();
     Builder = builder;
 }
示例#9
0
 public abstract QView CreateView(int position, IViewHierarchyBuilder builder);
示例#10
0
 public override QView CreateChildView(int groupPosition, int childPosition, IViewHierarchyBuilder builder)
 {
     return(DataSource[groupPosition][childPosition]);
 }
示例#11
0
 public FormContent(IList <List <QView> > content, ProfileForm form, IViewHierarchyBuilder builder) : base(builder)
 {
     DataSource = content;
     _form      = form;
 }
示例#12
0
#pragma warning restore RECS0026 // Possible unassigned object created by 'new'

        public override UITableView Create(IViewHierarchyBuilder builder)
        {
            return(new UITableView(CGRect.Empty, UITableViewStyle.Grouped));
        }
示例#13
0
 public abstract QView CreateChildView(int groupPosition, int childPosition, IViewHierarchyBuilder builder);
示例#14
0
 public GroupedListContent(IViewHierarchyBuilder builder)
 {
     Builder = builder;
 }
示例#15
0
 View IQView <View> .Create(IViewHierarchyBuilder builder)
 {
     return(Create(builder));
 }
示例#16
0
#pragma warning restore RECS0026 // Possible unassigned object created by 'new'

        public override UIButton Create(IViewHierarchyBuilder builder)
        {
            return(new UIButton(UIButtonType.Custom));
        }