| | |
| | | public Button btnState = new Button |
| | | { |
| | | TextSize = TextSize.text12, |
| | | Width = Application.GetRealWidth(130), |
| | | Width = Application.GetRealWidth(130+20), |
| | | Height = Application.GetRealHeight(17), |
| | | TextColor = CSS.CSS_Color.textCancelColor, |
| | | Y = Application.GetRealHeight(14), |
| | | X = Application.GetRealWidth(165), |
| | | X = Application.GetRealWidth(165-10), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | }; |
| | | /// <summary> |
| | | /// (条件或者目标)色盘专用 |
| | | /// </summary> |
| | | public Button btnStateColor = new Button |
| | | { |
| | | Width = Application.GetRealWidth(10), |
| | | Height = Application.GetRealWidth(10), |
| | | Radius = (uint)Application.GetRealHeight(5), |
| | | X = Application.GetRealWidth(315 - 10), |
| | | Visible=false, |
| | | }; |
| | | |
| | | /// <summary> |
| | |
| | | verticalScrolView.AddChidren(frameLayout); |
| | | frameLayout.AddChidren(rowLayout); |
| | | btnIcon.Gravity = Gravity.CenterVertical; |
| | | btnStateColor.Gravity = Gravity.CenterVertical; |
| | | btnText.Gravity = Gravity.CenterVertical; |
| | | btnText.TextAlignment = TextAlignment.CenterLeft; |
| | | btnNextIcon.Gravity = Gravity.CenterVertical; |
| | | rowLayout.AddChidren(btnIcon); |
| | | rowLayout.AddChidren(btnText); |
| | | rowLayout.AddChidren(btnState); |
| | | rowLayout.AddChidren(btnStateColor); |
| | | rowLayout.AddChidren(btnNextIcon); |
| | | rowLayout.AddRightView(btnDelay); |
| | | rowLayout.AddRightView(btnDel); |