| | |
| | |
|
| | | //设备图标背景控件
|
| | | var frameIconBackGroud = new FrameLayout();
|
| | | frameIconBackGroud.Height = Application.GetMinRealAverage(112);
|
| | | frameIconBackGroud.Width = Application.GetMinRealAverage(112);
|
| | | frameIconBackGroud.Height = this.GetPictrueRealSize(112);
|
| | | frameIconBackGroud.Width = this.GetPictrueRealSize(112);
|
| | | frameIconBackGroud.Gravity = Gravity.CenterVertical;
|
| | | frameIconBackGroud.X = Application.GetRealWidth(46);
|
| | | frameIconBackGroud.Radius = (uint)Application.GetMinRealAverage(112 / 2);
|
| | | frameIconBackGroud.Radius = (uint)this.GetPictrueRealSize(112 / 2);
|
| | | frameIconBackGroud.BackgroundColor = Common.ZigbeeColor.Current.GXCGrayBackgroundColor;
|
| | | rowDevice.AddChidren(frameIconBackGroud, ChidrenBindMode.NotBind);
|
| | | frameIconBackGroud.Y += rowDevice.chidrenYaxis;
|
| | |
| | | string path1 = string.Empty;
|
| | | string path2 = string.Empty;
|
| | | //获取图片
|
| | | LocalDevice.Current.GetDeviceObjectIcon(typeInfo.ConcreteType, ref path1, ref path2);
|
| | | LocalDevice.Current.GetDeviceFunctionTypeMenuIcon(typeInfo.ConcreteType, ref path1, ref path2);
|
| | | dic[typeInfo.BeloneTextId].IconPath = path1;
|
| | | dic[typeInfo.BeloneTextId].IconPathSelected = path2;
|
| | | dic[typeInfo.BeloneTextId].TextId = typeInfo.BeloneTextId;
|