| | |
| | | /// </summary> |
| | | private FrameLayout bodyFrameLayout; |
| | | |
| | | |
| | | public Action action; |
| | | public Action<string> action; |
| | | |
| | | public CategorySceneSelectImgByLocal() |
| | | { |
| | |
| | | }; |
| | | bodyFrameLayout.AddChidren(scrollView); |
| | | |
| | | int k = 1; |
| | | for (int j = 0; j < 2; j++) |
| | | int k = 0; |
| | | for (int j = 0; j < 5; j++) |
| | | { |
| | | var itemView = new FrameLayout() |
| | | { |
| | |
| | | Width=Application.GetMinRealAverage(467), |
| | | Height=Application.GetMinRealAverage(311), |
| | | Gravity=Gravity.CenterVertical, |
| | | UnSelectedImagePath = $"SceneIcon/{k}.png", |
| | | UnSelectedImagePath = $"SceneIcon/{k}.jpg", |
| | | }; |
| | | itemView.AddChidren(icon); |
| | | icon.SetViewShadow(true); |
| | | k++; |
| | | |
| | | EventHandler<MouseEventArgs> selectIcon = (sender, e) => |
| | | { |
| | | CategoryAddScene.ImagePath = icon.UnSelectedImagePath; |
| | | Room.AddRoomScene.ImagePath = icon.UnSelectedImagePath; |
| | | action?.Invoke(); |
| | | //CategoryAddScene.ImagePath = icon.UnSelectedImagePath; |
| | | //Room.AddRoomScene.ImagePath = icon.UnSelectedImagePath; |
| | | action?.Invoke(icon.UnSelectedImagePath); |
| | | action = null; |
| | | this.RemoveFromParent(); |
| | | |