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); }
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); }
public ViewHierarchy(object root, IViewHierarchyBuilder builder) { Assert.Argument(root, nameof(root)).NotNull(); Assert.Argument(builder, nameof(builder)).NotNull(); _root = root; _builder = builder; Build(); }
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))); }
public abstract QView CreateGroupView(int group, IViewHierarchyBuilder builder);
public abstract QView CreateChildView(int group, int child, IViewHierarchyBuilder builder);
public GroupedListContent(IViewHierarchyBuilder builder) { Assert.Argument(builder, nameof(builder)).NotNull(); Builder = builder; }
public abstract QView CreateView(int position, IViewHierarchyBuilder builder);
public override QView CreateChildView(int groupPosition, int childPosition, IViewHierarchyBuilder builder) { return(DataSource[groupPosition][childPosition]); }
public FormContent(IList <List <QView> > content, ProfileForm form, IViewHierarchyBuilder builder) : base(builder) { DataSource = content; _form = form; }
#pragma warning restore RECS0026 // Possible unassigned object created by 'new' public override UITableView Create(IViewHierarchyBuilder builder) { return(new UITableView(CGRect.Empty, UITableViewStyle.Grouped)); }
public abstract QView CreateChildView(int groupPosition, int childPosition, IViewHierarchyBuilder builder);
public GroupedListContent(IViewHierarchyBuilder builder) { Builder = builder; }
View IQView <View> .Create(IViewHierarchyBuilder builder) { return(Create(builder)); }
#pragma warning restore RECS0026 // Possible unassigned object created by 'new' public override UIButton Create(IViewHierarchyBuilder builder) { return(new UIButton(UIButtonType.Custom)); }