| | |
| | | public AksMusicPage() |
| | | { |
| | | } |
| | | |
| | | |
| | | public Action<IntType> action; |
| | | CornerFramLayout cornerFram; |
| | | TypeSingleFramLayout typeSingleFramLayout; |
| | |
| | | |
| | | private void EventListener() |
| | | { |
| | | cornerFram.LoadButtonPage(4, (value) => |
| | | { |
| | | Console.WriteLine("1"); |
| | | }); |
| | | cornerFram.selectAction += (value) => |
| | | { |
| | | Console.WriteLine("1"); |
| | | }; |
| | | |
| | | typeSingleFramLayout.SetClickListener((f) => |
| | | { |
| | | Console.WriteLine("2"); |
| | | YkPage ykPage = new YkPage(); |
| | | MainPage.BasePageView.AddChidren(ykPage); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | ykPage.Show(); |
| | | }); |
| | | |
| | | menuFram.SetTopClickListener((b) => |
| | | { |
| | | |
| | | Console.WriteLine("5"); |
| | | }); |
| | | menuFram.SetBottomClickListener((b) => |
| | |
| | | |
| | | typeMultiFramLayout.SetLeftFlClickListener((f) => |
| | | { |
| | | Console.WriteLine("3"); |
| | | SxqPage sxqPage = new SxqPage(); |
| | | MainPage.BasePageView.AddChidren(sxqPage); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | sxqPage.Show(); |
| | | |
| | | }); |
| | | |
| | | typeMultiFramLayout.SetRightFlClickListener((f) => |
| | |
| | | }; |
| | | this.AddChidren(btnTitle); |
| | | |
| | | cornerFram = new CornerFramLayout(343, 452); |
| | | cornerFram = new CornerFramLayout(343, 452, 4,17); |
| | | cornerFram.X = Application.GetRealWidth(16); |
| | | cornerFram.Y = btnTitle.Bottom + Application.GetRealHeight(16); |
| | | this.AddChidren(cornerFram); |
| | | cornerFram.SetList(cornerFram.GetTestList(17)); |
| | | cornerFram.SetMargin(16, 0, 16, 0); |
| | | cornerFram.LoadButtonPage(); |
| | | |
| | | |
| | | CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 364); |
| | | CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 364, 0,17); |
| | | cornerBottomFram.X = Application.GetRealWidth(16); |
| | | cornerBottomFram.Y = cornerFram.Bottom + Application.GetRealHeight(16); |
| | | cornerBottomFram.BackgroundColor = MusicColor.WhiteColor; |
| | |
| | | typeMultiFramLayout = new TypeMultiFramLayout(); |
| | | typeMultiFramLayout.multiFramLayout.Y = menuFram.Bottom + Application.GetRealHeight(32); |
| | | typeMultiFramLayout.AddView(cornerBottomFram); |
| | | |
| | | |
| | | |
| | | this.AdjustRealHeight(20); |
| | | } |