| | |
| | | /// <summary>
|
| | | /// 引导界面的共通界面
|
| | | /// </summary>
|
| | | public class GuideCommonForm : FrameLayout
|
| | | public class GuideCommonForm : FrameLayoutBase
|
| | | {
|
| | | #region ■ 变量声明___________________________
|
| | |
|
| | |
| | | /// </summary>
|
| | | public virtual void ShowFrom()
|
| | | {
|
| | | Phone.MainPage.ListRoomViewFrom.Instance.CanClick = false;
|
| | | Phone.MainPage.LeftListRoomViewFrom.Instance.CanClick = false;
|
| | |
|
| | | UserView.UserPage.Instance.AddChidren(this);
|
| | | this.BackgroundColor = Common.ZigbeeColor.Current.GXCGrayBackgroundColor;
|
| | |
| | | var btnHouseIcon = new IconViewControl(69);
|
| | | btnHouseIcon.UnSelectedImagePath = "Item/Floor.png";
|
| | | btnHouseIcon.Y = Application.GetRealHeight(86);
|
| | | btnHouseIcon.X = ControlCommonResourse.XXLeft;
|
| | | btnHouseIcon.X = HdlControlResourse.XXLeft;
|
| | | this.AddChidren(btnHouseIcon);
|
| | | //消息图标
|
| | | var btnMsg = new IconViewControl(69);
|
| | |
| | | //住宅名字
|
| | | this.btnHouse = new NormalViewControl(300, 95, true);
|
| | | btnHouse.TextSize = 24;
|
| | | btnHouse.X = ControlCommonResourse.XXLeft;
|
| | | btnHouse.X = HdlControlResourse.XXLeft;
|
| | | btnHouse.Y = Application.GetRealHeight(161);
|
| | | btnHouse.TextID = R.MyInternationalizationString.uMyResidence;
|
| | | this.AddChidren(btnHouse);
|
| | |
| | |
|
| | | //底部菜单
|
| | | var frameMenu = new FrameLayout();
|
| | | frameMenu.Height = ControlCommonResourse.BottomFrameHeight;
|
| | | frameMenu.Height = HdlControlResourse.BottomFrameHeight;
|
| | | frameMenu.Gravity = Gravity.BottomCenter;
|
| | | this.AddChidren(frameMenu);
|
| | | //线
|
| | |
| | | //主页
|
| | | var btnMenuHome = new IconViewControl(10, false);
|
| | | btnMenuHome.X = Application.GetRealWidth(109);
|
| | | btnMenuHome.Width = Application.GetMinRealAverage(138);
|
| | | btnMenuHome.Height = Application.GetMinRealAverage(98);
|
| | | btnMenuHome.Width = this.GetPictrueRealSize(138);
|
| | | btnMenuHome.Height = this.GetPictrueRealSize(98);
|
| | | btnMenuHome.UnSelectedImagePath = "Navigation/HomeSelected.png";
|
| | | frameMenu.AddChidren(btnMenuHome);
|
| | | var btnMenuHomeName = new NormalViewControl(btnMenuHome.Width, Application.GetRealHeight(40), false);
|
| | |
| | | //分类
|
| | | var btnFenlei = new IconViewControl(10, false);
|
| | | btnFenlei.X = Application.GetRealWidth(469);
|
| | | btnFenlei.Width = Application.GetMinRealAverage(138);
|
| | | btnFenlei.Height = Application.GetMinRealAverage(98);
|
| | | btnFenlei.Width = this.GetPictrueRealSize(138);
|
| | | btnFenlei.Height = this.GetPictrueRealSize(98);
|
| | | btnFenlei.UnSelectedImagePath = "Navigation/Category.png";
|
| | | frameMenu.AddChidren(btnFenlei);
|
| | | var btnFenleiName = new NormalViewControl(btnFenlei.Width, Application.GetRealHeight(40), false);
|
| | |
| | | //我的
|
| | | var btnMy = new IconViewControl(10, false);
|
| | | btnMy.X = Application.GetRealWidth(832);
|
| | | btnMy.Width = Application.GetMinRealAverage(138);
|
| | | btnMy.Height = Application.GetMinRealAverage(98);
|
| | | btnMy.Width = this.GetPictrueRealSize(138);
|
| | | btnMy.Height = this.GetPictrueRealSize(98);
|
| | | btnMy.UnSelectedImagePath = "Navigation/Setting.png";
|
| | | frameMenu.AddChidren(btnMy);
|
| | | var btnMyName = new NormalViewControl(btnMy.Width, Application.GetRealHeight(40), false);
|