| | |
| | | /// <summary> |
| | | /// 做成一个TopFrameLayout的返回键✩ |
| | | /// </summary> |
| | | public class BackViewControl : FrameLayoutControl |
| | | public class BackViewControl : FrameLayoutStatuControl |
| | | { |
| | | /// <summary>
|
| | | /// 图标宽度
|
| | |
| | | this.UseClickStatu = false; |
| | | this.Name = "btnBack"; |
| | | this.X = ControlCommonResourse.XXLeft - Application.GetRealWidth((110 - iconWidth) / 2); |
| | | this.Width = Application.GetMinRealAverage(110); |
| | | this.Height = Application.GetMinRealAverage(110); |
| | | this.Width = this.GetPictrueRealSize(110); |
| | | this.Height = this.GetPictrueRealSize(110); |
| | | this.Gravity = Gravity.CenterVertical; |
| | | } |
| | | |
| | |
| | | public void InitControl()
|
| | | {
|
| | | var btnIcon = new ButtonBase();
|
| | | btnIcon.Width = Application.GetMinRealAverage(30); |
| | | btnIcon.Height = Application.GetMinRealAverage(51); |
| | | btnIcon.Width = this.GetPictrueRealSize(30); |
| | | btnIcon.Height = this.GetPictrueRealSize(51); |
| | | btnIcon.UnSelectedImagePath = "Item/Back.png";
|
| | | btnIcon.Gravity = Gravity.Center;
|
| | |
|