| | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// SceneMainView |
| | | /// </summary> |
| | | /// <param name="x"></param> |
| | | /// <param name="y"></param> |
| | | public SceneMainView(int x, int y) |
| | | { |
| | | X = Application.GetRealWidth(x); |
| | | Y = Application.GetRealHeight(y); |
| | | Width = Application.GetMinRealAverage(487); |
| | | Height = Application.GetMinRealAverage(348); |
| | | Width = Application.GetRealWidth(487); |
| | | Height = Application.GetRealHeight(358); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | private void InitFrame() |
| | | { |
| | | CardBG = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(487), |
| | | Height = Application.GetMinRealAverage(348), |
| | | UnSelectedImagePath = "Item/FunctionCardView.png", |
| | | Gravity = Gravity.CenterHorizontal |
| | | }; |
| | | AddChidren(CardBG); |
| | | |
| | | SceneIcon = new ImageView |
| | | { |
| | | Width = Application.GetMinRealAverage(458), |
| | | Height = Application.GetMinRealAverage(305), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | }; |
| | | AddChidren(SceneIcon); |
| | | SceneIcon.SetViewShadow(true); |
| | | SceneIcon.SetCornerWithSameRadius(Application.GetRealHeight(100), HDLUtils.RectCornerBottomRight); |
| | | |
| | | //sceneBG = new Button |
| | | //CardBG = new Button |
| | | //{ |
| | | // Width = Application.GetMinRealAverage(487), |
| | | // Height = Application.GetMinRealAverage(348), |
| | | // UnSelectedImagePath = "Item/SceneCard.png", |
| | | // UnSelectedImagePath = "Item/FunctionCardView.png", |
| | | // Gravity = Gravity.CenterHorizontal |
| | | //}; |
| | | //AddChidren(sceneBG); |
| | | //AddChidren(CardBG); |
| | | |
| | | SceneIcon = new ImageView |
| | | { |
| | | X=Application.GetRealWidth(14), |
| | | Width = Application.GetMinRealAverage(458), |
| | | Height = Application.GetMinRealAverage(305), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Radius= (uint)Application.GetRealHeight(17) |
| | | }; |
| | | AddChidren(SceneIcon); |
| | | //SceneIcon.SetViewShadow(true); |
| | | //SceneIcon.SetCornerWithSameRadius(Application.GetRealHeight(100), HDLUtils.RectCornerBottomRight); |
| | | |
| | | sceneBG = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(487), |
| | | Height = Application.GetMinRealAverage(348), |
| | | UnSelectedImagePath = "Scene/Background.png", |
| | | Gravity = Gravity.CenterHorizontal |
| | | }; |
| | | AddChidren(sceneBG); |
| | | |
| | | TimeButton = new Button() |
| | | { |