| | |
| | | bodyFrameLayout.AddChidren(listView);
|
| | |
|
| | | int space = this.GetPictrueRealSize(46);
|
| | | int backWidth = (listView.Width - ControlCommonResourse.XXLeft * 2 - space * 3) / 4;
|
| | | int backWidth = (listView.Width - HdlControlResourse.XXLeft * 2 - space * 3) / 4;
|
| | | //防止误差,分两步计算
|
| | | int iconWidth = backWidth - this.GetPictrueRealSize(43) - this.GetPictrueRealSize(43);
|
| | |
|
| | |
| | | frameBack.Width = backWidth;
|
| | | frameBack.Radius = (uint)backWidth / 2;
|
| | | frameBack.BackgroundColor = UserCenterColor.Current.White;
|
| | | frameBack.X = ControlCommonResourse.XXLeft + (i % 4) * (backWidth + space);
|
| | | frameBack.X = HdlControlResourse.XXLeft + (i % 4) * (backWidth + space);
|
| | | frameBack.Y = Application.GetRealHeight(58);
|
| | | frameRow.AddChidren(frameBack);
|
| | |
|
| | |
| | | btnIcon.UnSelectedImagePath = $"FunctionIcon/{i + 1}Icon.png";
|
| | | btnIcon.SelectedImagePath = $"FunctionIcon/{i + 1}IconSelected.png";
|
| | | btnIcon.Gravity = Gravity.Center;
|
| | | frameBack.AddChidren(btnIcon, ChidrenBindMode.BindEventOnly);
|
| | | frameBack.AddChidren(btnIcon, ChidrenBindMode.BindEvent);
|
| | |
|
| | | frameBack.ButtonClickEvent += (sender, e) =>
|
| | | {
|