From 9f326f4000847e6167d8166fa2f6a66f53cb3734 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 17 十二月 2020 09:07:13 +0800 Subject: [PATCH] 新云端Ver1.3 --- ZigbeeApp/Shared/Phone/SmartSound/Forms/SmartSoundContentForDevice.cs | 45 +++++++++++++++++++++++---------------------- 1 files changed, 23 insertions(+), 22 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/SmartSound/Forms/SmartSoundContentForDevice.cs b/ZigbeeApp/Shared/Phone/SmartSound/Forms/SmartSoundContentForDevice.cs index b2df8fa..6aaeb9f 100755 --- a/ZigbeeApp/Shared/Phone/SmartSound/Forms/SmartSoundContentForDevice.cs +++ b/ZigbeeApp/Shared/Phone/SmartSound/Forms/SmartSoundContentForDevice.cs @@ -135,6 +135,13 @@ else { tipLayout.Visible = false; + } + + if (listView.ChildrenCount > 5) + { + TextView textView = new TextView(); + textView.Height = Application.GetRealHeight(127 * 3); + listView.AddChidren(textView); } } catch (Exception ex) @@ -178,7 +185,7 @@ tab_layout.AddChidren(button); button.Width = Application.GetRealWidth(250); button.Text = TabList[i]; - button.X = ControlCommonResourse.XXLeft/2 + i * button.Width; + button.X = HdlControlResourse.XXLeft/2 + i * button.Width; button.AddTag("Index", i); Buttons.Add(button); @@ -350,7 +357,7 @@ /// </summary> private NormalViewControl btnName = null; - private IconViewControl Right_icon = null; + private MostRightIconControl Right_icon = null; /// <summary> @@ -373,14 +380,11 @@ //鏄剧ず鏂囨湰 btnName = this.AddLeftCaption(string.Empty, 700); btnName.Height = Application.GetRealHeight(60); - btnName.TextSize = 17; + btnName.TextSize = 14; btnName.Y = Application.GetRealHeight(57); btnName.Text = scene.SceneName; - Right_icon = this.AddRightArrow(); - Right_icon.Width = Application.GetRealWidth(115); - Right_icon.Height = Application.GetRealHeight(115); + Right_icon = this.AddMostRightEmptyIcon(58, 58); Right_icon.Gravity = Gravity.CenterVertical; - Right_icon.X = Right_icon.X - Application.GetRealWidth(60); this.ButtonClickEvent += (sender, e) => { @@ -399,13 +403,13 @@ { if (bol) { - Right_icon.SelectedImagePath = "SmartSound/CheckBoxSel.png"; - Right_icon.UnSelectedImagePath = "SmartSound/CheckBoxSel.png"; + Right_icon.SelectedImagePath = "Item/ItemSelected.png"; + Right_icon.UnSelectedImagePath = "Item/ItemSelected.png"; } else { - Right_icon.SelectedImagePath = "SmartSound/CheckBoxDef.png"; - Right_icon.UnSelectedImagePath = "SmartSound/CheckBoxDef.png"; + Right_icon.SelectedImagePath = "Item/ItemUnSelected.png"; + Right_icon.UnSelectedImagePath = "Item/ItemUnSelected.png"; } } catch (Exception e) @@ -432,7 +436,7 @@ /// </summary> private NormalViewControl btnName = null; - private IconViewControl Right_icon = null; + private MostRightIconControl Right_icon = null; /// <summary> @@ -455,14 +459,11 @@ //鏄剧ず鏂囨湰 btnName = this.AddLeftCaption(string.Empty, 700); btnName.Height = Application.GetRealHeight(60); - btnName.TextSize = 17; + btnName.TextSize = 14; btnName.Y = Application.GetRealHeight(57); btnName.Text = device.DeviceName; - Right_icon = this.AddRightArrow(); - Right_icon.Width = Application.GetRealWidth(115); - Right_icon.Height = Application.GetRealHeight(115); + Right_icon = this.AddMostRightEmptyIcon(58, 58); Right_icon.Gravity = Gravity.CenterVertical; - Right_icon.X = Right_icon.X - Application.GetRealWidth(60); this.ButtonClickEvent += (sender, e) => { @@ -481,14 +482,14 @@ { if (bol) { - Right_icon.SelectedImagePath = "SmartSound/CheckBoxSel.png"; - Right_icon.UnSelectedImagePath = "SmartSound/CheckBoxSel.png"; + Right_icon.SelectedImagePath = "Item/ItemSelected.png"; + Right_icon.UnSelectedImagePath = "Item/ItemSelected.png"; } else { - Right_icon.SelectedImagePath = "SmartSound/CheckBoxDef.png"; - Right_icon.UnSelectedImagePath = "SmartSound/CheckBoxDef.png"; - } + Right_icon.SelectedImagePath = "Item/ItemUnSelected.png"; + Right_icon.UnSelectedImagePath = "Item/ItemUnSelected.png"; + } } catch (Exception e) { -- Gitblit v1.8.0