| | |
| | | /// <summary>
|
| | | /// 做成一个RowLayout型的FrameLayout
|
| | | /// </summary>
|
| | | /// <param name="i_ChidrenYaxis">子控件Y轴偏移量(真实值,有些界面需要这种特殊操作)</param>
|
| | | /// <param name="i_ChidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param>
|
| | | public FrameRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis)
|
| | | {
|
| | | this.Height = ControlCommonResourse.ListViewRowHeight;
|
| | |
| | | i_width = Application.GetRealWidth(i_width);
|
| | | }
|
| | | var contr = this.AddLeftCaption(i_caption, i_width, this.Height, false);
|
| | | this.AddChidren(contr, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(contr, ChidrenBindMode.BindEvent);
|
| | | if (chidrenYaxis != 0)
|
| | | {
|
| | | contr.Y += chidrenYaxis;
|
| | |
| | | var btnIcon = new IconViewControl(i_Iconsize);
|
| | | btnIcon.X = ControlCommonResourse.XXLeft + LeftOffset;
|
| | | btnIcon.Gravity = Gravity.CenterVertical;
|
| | | this.AddChidren(btnIcon, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnIcon, ChidrenBindMode.BindEvent);
|
| | | if (chidrenYaxis != 0)
|
| | | {
|
| | | btnIcon.Y += chidrenYaxis;
|
| | |
| | | btnRight.Gravity = Gravity.CenterVertical;
|
| | | btnRight.X =this.Width - btnRight.IconSize - ControlCommonResourse.XXLeft + RightOffset;
|
| | | btnRight.UnSelectedImagePath = "Item/RightNext.png";
|
| | | this.AddChidren(btnRight, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnRight, ChidrenBindMode.BindEvent);
|
| | |
|
| | | if (chidrenYaxis != 0)
|
| | | {
|
| | |
| | | this.AddChidren(btnContr, ChidrenBindMode.NotBind);
|
| | | btnContr.InitControl();
|
| | | //复合控件需要特殊处理
|
| | | this.ChangedChidrenBindMode(btnContr, ChidrenBindMode.BindEventOnly);
|
| | | this.ChangedChidrenBindMode(btnContr, ChidrenBindMode.BindEvent);
|
| | | if (RightOffset != 0)
|
| | | {
|
| | | btnContr.X += RightOffset;
|
| | |
| | | i_width = Application.GetRealWidth(i_width);
|
| | | }
|
| | | var btnContr = AddMostRightView(i_text, i_width, this.Height, false);
|
| | | this.AddChidren(btnContr, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnContr, ChidrenBindMode.BindEvent);
|
| | | if (chidrenYaxis != 0)
|
| | | {
|
| | | btnContr.Y += chidrenYaxis;
|
| | |
| | | }
|
| | | var contr = this.AddLeftCaption(i_caption, i_width, Application.GetRealHeight(60), false);
|
| | | contr.TextSize = 15;
|
| | | contr.Y = Application.GetRealHeight(12) + this.chidrenYaxis;
|
| | | this.AddChidren(contr, ChidrenBindMode.BindEventOnly);
|
| | | //当指定实际坐标时,这里需要的偏移量为2倍
|
| | | contr.Y = Application.GetRealHeight(12) + this.chidrenYaxis * 2;
|
| | | this.AddChidren(contr, ChidrenBindMode.BindEvent);
|
| | |
|
| | | return contr;
|
| | | }
|
| | |
| | | i_width = Application.GetRealWidth(i_width);
|
| | | }
|
| | | var contr = this.AddLeftCaption(i_caption, i_width, Application.GetRealHeight(50), false);
|
| | | contr.Y = Application.GetRealHeight(72) + this.chidrenYaxis;
|
| | | //当指定实际坐标时,这里需要的偏移量为2倍
|
| | | contr.Y = Application.GetRealHeight(72) + this.chidrenYaxis * 2;
|
| | | contr.TextSize = 12;
|
| | | contr.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | this.AddChidren(contr, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(contr, ChidrenBindMode.BindEvent);
|
| | |
|
| | | return contr;
|
| | | }
|