old mode 100755
new mode 100644
File was renamed from ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs |
| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | |
|
| | | namespace Shared.Phone.UserCenter
|
| | | namespace Shared.Phone |
| | | {
|
| | | /// <summary>
|
| | | /// 做成一个RowLayout型的FrameLayout
|
| | |
| | | /// <param name="i_ChidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param>
|
| | | public FrameRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis)
|
| | | {
|
| | | this.Height = ControlCommonResourse.ListViewRowHeight;
|
| | | this.Height = HdlControlResourse.ListViewRowHeight; |
| | | this.Width = Application.CurrentWidth;
|
| | | }
|
| | |
|
| | |
| | | //已经添加了底线
|
| | | return btnBottomLine;
|
| | | }
|
| | | int lineWidth = this.Width - ControlCommonResourse.XXLeft * 2 - LeftOffset - RightOffset;
|
| | | int XX = ControlCommonResourse.XXLeft + LeftOffset;
|
| | | int lineWidth = this.Width - HdlControlResourse.XXLeft * 2 - LeftOffset - RightOffset; |
| | | int XX = HdlControlResourse.XXLeft + LeftOffset; |
| | | if (leftIconSize > 0)
|
| | | {
|
| | | lineWidth = lineWidth - leftIconSize - Application.GetRealWidth(35);
|
| | | XX = XX + leftIconSize + Application.GetRealWidth(35);
|
| | | }
|
| | | this.btnBottomLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
|
| | | this.btnBottomLine = new NormalViewControl(lineWidth, HdlControlResourse.BottomLineHeight, false); |
| | | btnBottomLine.X = XX;
|
| | | btnBottomLine.Y = this.Height - ControlCommonResourse.BottomLineHeight;
|
| | | btnBottomLine.Y = this.Height - HdlControlResourse.BottomLineHeight; |
| | | btnBottomLine.BackgroundColor = UserCenterColor.Current.ButtomLine;
|
| | | base.AddChidren(btnBottomLine);
|
| | |
|
| | |
| | | /// <returns></returns>
|
| | | public NormalViewControl AddLeftCaption(string i_caption, int i_width, int i_height, bool real = true)
|
| | | {
|
| | | int XX = ControlCommonResourse.XXLeft + LeftOffset;
|
| | | int XX = HdlControlResourse.XXLeft + LeftOffset; |
| | | if (this.leftIconSize > 0)
|
| | | {
|
| | | XX += this.leftIconSize + Application.GetRealWidth(35);
|
| | |
| | | {
|
| | | i_width = Application.GetRealWidth(i_width);
|
| | | }
|
| | | int XX = ControlCommonResourse.XXLeft + LeftOffset;
|
| | | int XX = HdlControlResourse.XXLeft + LeftOffset; |
| | | if (this.leftIconSize > 0)
|
| | | {
|
| | | XX += this.leftIconSize + Application.GetRealWidth(35);
|
| | |
| | | public IconViewControl AddLeftIcon(int i_Iconsize = 81, string i_IconPath = null)
|
| | | {
|
| | | var btnIcon = new IconViewControl(i_Iconsize);
|
| | | btnIcon.X = ControlCommonResourse.XXLeft + LeftOffset;
|
| | | btnIcon.X = HdlControlResourse.XXLeft + LeftOffset; |
| | | btnIcon.Gravity = Gravity.CenterVertical;
|
| | | if (i_IconPath != null)
|
| | | {
|
| | |
| | | {
|
| | | var btnRight = new IconViewControl(58);
|
| | | btnRight.Gravity = Gravity.CenterVertical;
|
| | | btnRight.X =this.Width - btnRight.IconSize - ControlCommonResourse.XXLeft + RightOffset;
|
| | | btnRight.X =this.Width - btnRight.IconSize - HdlControlResourse.XXLeft + RightOffset; |
| | | btnRight.UnSelectedImagePath = "Item/RightNext.png";
|
| | | this.AddChidren(btnRight, ChidrenBindMode.BindEvent);
|
| | |
|
| | |
| | | i_height = Application.GetRealHeight(i_height);
|
| | | }
|
| | | var btnContr = new NormalViewControl(i_width, i_height, false);
|
| | | btnContr.X = this.Width - ControlCommonResourse.XXLeft - i_width - rightIconSize + RightOffset;
|
| | | btnContr.X = this.Width - HdlControlResourse.XXLeft - i_width - rightIconSize + RightOffset; |
| | | btnContr.Height = i_height;
|
| | | btnContr.TextAlignment = TextAlignment.CenterRight;
|
| | | btnContr.TextColor = UserCenterColor.Current.TextGrayColor1;
|