old mode 100755
new mode 100644
| | |
| | | using System; |
| | | using Shared.Common; |
| | | using Shared.Phone.UserView; |
| | | |
| | | namespace Shared.Phone.Device.CommonForm |
| | | { |
| | |
| | | /// <summary> |
| | | /// SceneIcon |
| | | /// </summary> |
| | | public Button Icon; |
| | | public ImageView Icon; |
| | | /// <summary> |
| | | /// RoomNameButton |
| | | /// </summary> |
| | |
| | | /// CardBG |
| | | /// </summary> |
| | | private Button CardBG; |
| | | |
| | | /// <summary> |
| | | /// ClickBtn |
| | | /// </summary> |
| | | public Button ClickBtn; |
| | | /// <summary> |
| | | /// 是否可以触发点击事件 |
| | | /// </summary> |
| | | public bool CanClick = true; |
| | | /// <summary> |
| | | /// RoomMainView |
| | | /// </summary> |
| | |
| | | /// <summary> |
| | | /// init |
| | | /// </summary> |
| | | public void Init() |
| | | public void Init(FrameLayout frameLayout, Common.Room room) |
| | | { |
| | | CardBG = new Button |
| | | { |
| | |
| | | }; |
| | | AddChidren(CardBG); |
| | | |
| | | Icon = new Button |
| | | Icon = new ImageView |
| | | { |
| | | X = Application.GetMinRealAverage(14), |
| | | Width = Application.GetMinRealAverage(467), |
| | |
| | | X = Application.GetMinRealAverage(14), |
| | | Width = Application.GetMinRealAverage(141), |
| | | Height = Application.GetMinRealAverage(84), |
| | | TextColor = ZigbeeColor.Current.GXCTextWhiteColor |
| | | TextColor = ZigbeeColor.Current.GXCTextWhiteColor, |
| | | TextSize=14, |
| | | IsBold=true |
| | | }; |
| | | AddChidren(RoomNameButton); |
| | | |
| | | ClickBtn = new Button { }; |
| | | AddChidren(ClickBtn); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="imagePath"></param> |
| | | public void SetRoomIcon(string imagePath) |
| | | { |
| | | Icon.UnSelectedImagePath = imagePath; |
| | | Icon.ImagePath = imagePath; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |