| | |
| | | /// 右边图标控件的大小
|
| | | /// </summary>
|
| | | private int rightIconSize = 0;
|
| | | /// <summary>
|
| | | /// 底线控件
|
| | | /// </summary>
|
| | | private NormalViewControl btnBottomLine = null;
|
| | |
|
| | | #endregion |
| | |
|
| | |
| | | /// </summary> |
| | | public virtual NormalViewControl AddBottomLine()
|
| | | {
|
| | | if (this.btnBottomLine != null)
|
| | | {
|
| | | //已经添加了底线
|
| | | return btnBottomLine;
|
| | | }
|
| | | int lineWidth = this.Width - ControlCommonResourse.XXLeft * 2 - LeftOffset - RightOffset;
|
| | | int XX = ControlCommonResourse.XXLeft + LeftOffset;
|
| | | if (leftIconSize > 0)
|
| | |
| | | lineWidth = lineWidth - leftIconSize - Application.GetRealWidth(35);
|
| | | XX = XX + leftIconSize + Application.GetRealWidth(35);
|
| | | }
|
| | | var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
|
| | | btnLine.X = XX;
|
| | | btnLine.Y = this.Height - ControlCommonResourse.BottomLineHeight;
|
| | | btnLine.BackgroundColor = UserCenterColor.Current.ButtomLine;
|
| | | base.AddChidren(btnLine);
|
| | | this.btnBottomLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
|
| | | btnBottomLine.X = XX;
|
| | | btnBottomLine.Y = this.Height - ControlCommonResourse.BottomLineHeight;
|
| | | btnBottomLine.BackgroundColor = UserCenterColor.Current.ButtomLine;
|
| | | base.AddChidren(btnBottomLine);
|
| | |
|
| | | return btnLine;
|
| | | return btnBottomLine;
|
| | | }
|
| | |
|
| | | #endregion
|