public NodeImageView(Context context) : base(context)
 {
     this.Orientation = Orientation.Horizontal;
     label1           = new ContentLabel(context);
     label1.Gravity   = GravityFlags.CenterVertical;
     imageIcon        = new ExpanderImage(context);
     this.AddView(imageIcon);
     this.AddView(label1);
 }
 public TemplateView(Context context, TreeViewItemInfoBase itemInfo) : base(context)
 {
     this.Orientation = Orientation.Horizontal;
     label1           = new ContentLabel(context);
     label1.Gravity   = GravityFlags.CenterVertical;
     label1.SetPadding(0, 0, 0, 0);
     label2         = new ContentLabel(context);
     label2.Gravity = GravityFlags.Center;
     expanderWidth  = (int)(itemInfo as TreeViewItemInfo).TreeView.ExpanderWidth;
     this.AddView(label1);
     this.AddView(label2);
 }
        public TemplateView(Context context) : base(context)
        {
            this.Orientation = Orientation.Horizontal;
            label1           = new ContentLabel(context);
            label1.Gravity   = GravityFlags.CenterVertical;
            var labelPadding = (int)(10 * Resources.DisplayMetrics.Density);

            label1.SetPadding(labelPadding, 0, 0, 0);
            label2         = new ContentLabel(context);
            label2.Gravity = GravityFlags.Center;
            this.AddView(label1);
            this.AddView(label2);
        }