| | |
| | | /// 初始化头部控件
|
| | | /// </summary>
|
| | | private void InitTopFrameLayoutControl()
|
| | | {
|
| | | { |
| | | |
| | | |
| | |
|
| | | //头部容器
|
| | | base.topFrameLayout = new FrameLayout();
|
| | | topFrameLayout.Y = Application.GetRealHeight(60);
|
| | |
| | | } |
| | | |
| | | //可视对讲快捷方式 |
| | | var videoIntercomBtn = new Button();
|
| | | videoIntercomBtn.Gravity = Gravity.CenterVertical;
|
| | | videoIntercomBtn.UnSelectedImagePath = "Item/videoIntercom.png";
|
| | | videoIntercomBtn.Width = Application.GetMinRealAverage(69); |
| | | videoIntercomBtn.Height = Application.GetMinRealAverage(69);
|
| | | topFrameLayout.AddChidren(videoIntercomBtn); |
| | | if (UserCenterResourse.ResidenceOption.SafetyShortcut) |
| | | { |
| | | videoIntercomBtn.X = Application.GetRealWidth(746+10);
|
| | | } |
| | | else |
| | | { |
| | | videoIntercomBtn.X = Application.GetRealWidth(850+10); |
| | | } |
| | | videoIntercomBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | Shared.Phone.Device.VideoIntercom.VideoMachine.Video(topFrameLayout); |
| | | |
| | | var videoMachine = new Device.VideoIntercom.VideoMachine(); |
| | | UserView.HomePage.Instance.AddChidren(videoMachine); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | videoMachine.Show(); |
| | | |
| | | }; |
| | | //var videoIntercomBtn = new Button();
|
| | | //videoIntercomBtn.Gravity = Gravity.CenterVertical;
|
| | | //videoIntercomBtn.UnSelectedImagePath = "Item/videoIntercom.png";
|
| | | //videoIntercomBtn.Width = Application.GetMinRealAverage(69); |
| | | //videoIntercomBtn.Height = Application.GetMinRealAverage(69);
|
| | | //topFrameLayout.AddChidren(videoIntercomBtn); |
| | | //if (UserCenterResourse.ResidenceOption.SafetyShortcut) |
| | | //{ |
| | | // videoIntercomBtn.X = Application.GetRealWidth(746+10);
|
| | | //} |
| | | //else |
| | | //{ |
| | | // videoIntercomBtn.X = Application.GetRealWidth(850+10); |
| | | //} |
| | | //videoIntercomBtn.MouseUpEventHandler += (sender, e) => |
| | | //{ |
| | | // var videoMachine = new Device.VideoIntercom.VideoMachine(); |
| | | // UserView.HomePage.Instance.AddChidren(videoMachine); |
| | | // UserView.HomePage.Instance.PageIndex += 1; |
| | | // videoMachine.Show(); |
| | | //}; |
| | | |
| | | |
| | | |