2023年10月12日13:09:30
Ui视觉走查
| | |
| | | { |
| | | |
| | | public const int widthFrameLayout = 78; |
| | | public const int heightFrameLayout = 84; |
| | | public const int heightFrameLayout = 84-6; |
| | | public const int lineW = 1; |
| | | public const int cornerValue = 8; |
| | | |
| | |
| | | }; |
| | | Button btnName = new Button |
| | | { |
| | | Y = Application.GetRealHeight(12 + 32 + 8), |
| | | Y = Application.GetRealHeight(12 + 26 + 8),//(12 + 32 + 8) |
| | | Width = Application.GetRealWidth(widthFrameLayout), |
| | | Height = Application.GetRealHeight(20), |
| | | TextSize = TextSize.Text14, |
| | | TextColor = MusicColor.TextColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Padding = new Padding(0, 20, 0, 20), |
| | | Padding = new Padding(0, 10, 0, 10), |
| | | Name = "btnName", |
| | | |
| | | |
| | |
| | | { |
| | | |
| | | //按下去改变背景颜色 |
| | | this.BackgroundColor = 0xFFEFEFEF; |
| | | this.BackgroundColor = 0xFFF2F3F7; |
| | | action?.Invoke(this, btnImage, btnName); |
| | | }; |
| | | |
| | |
| | | IsBold = true, |
| | | Tag = keypad, |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | SelectedBackgroundColor = 0xFFEFEFEF, |
| | | SelectedBackgroundColor = 0xFFF2F3F7, |
| | | Radius = (uint)Application.GetRealHeight(8), |
| | | SelectedTextColor = MusicColor.TextColor, |
| | | }; |
| | | this.AddChidren(button); |
| | | |
| | |
| | | { |
| | | |
| | | public const int widthFrameLayout = 80; |
| | | public const int heightFrameLayout = 140; |
| | | public const int heightFrameLayout = 140-15; |
| | | public const int cornerValue = 12; |
| | | |
| | | public VerticalBoutonFLayout(int width = widthFrameLayout, int height = heightFrameLayout) |
| | |
| | | { |
| | | Height = Application.GetRealWidth(40), |
| | | Width = Application.GetRealWidth(40), |
| | | Radius = (uint)Application.GetRealHeight(20), |
| | | Radius = (uint)Application.GetRealWidth(20), |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | }; |
| | |
| | | Gravity = Gravity.Center, |
| | | TextColor = MusicColor.MusicTxet14SelectedColor, |
| | | TextSize = TextSize.Text14, |
| | | IsBold=true, |
| | | }; |
| | | |
| | | public Button btnName = new Button |
| | |
| | | TextColor = MusicColor.TextColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Padding = new Padding(0, 20, 0, 20), |
| | | Padding = new Padding(0, 8, 0, 8), |
| | | IsMoreLines = true, |
| | | Text="none" |
| | | }; |
| | |
| | | { |
| | | Height = Application.GetRealWidth(40), |
| | | Width = Application.GetRealWidth(40), |
| | | Radius = (uint)Application.GetRealHeight(20), |
| | | Radius = (uint)Application.GetRealWidth(20), |
| | | BackgroundColor = MusicColor.WhiteColor, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | }; |
| | |
| | | Gravity = Gravity.Center, |
| | | TextColor = 0xFFA5AEBC, |
| | | TextSize = TextSize.Text14, |
| | | IsBold = true, |
| | | }; |
| | | |
| | | |
| | |
| | | |
| | | |
| | | |
| | | cornerFram = new CornerFramLayout(343, 284, 17); |
| | | cornerFram = new CornerFramLayout(343, 284-18, 17); |
| | | cornerFram.X = Application.GetRealWidth(16); |
| | | cornerFram.Y = btnTitle.Bottom + Application.GetRealHeight(16); |
| | | this.AddChidren(cornerFram); |
| | |
| | | }; |
| | | this.AddChidren(btnTitle); |
| | | |
| | | cornerTopFram = new CornerFramLayout(343, 368, 17); |
| | | cornerTopFram = new CornerFramLayout(343, 368-24, 17); |
| | | cornerTopFram.X = Application.GetRealWidth(16); |
| | | cornerTopFram.Y = btnTitle.Bottom + Application.GetRealHeight(16); |
| | | this.AddChidren(cornerTopFram); |
| | |
| | | |
| | | |
| | | //菜单容器 |
| | | CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 292, 17); |
| | | CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 292-30, 17); |
| | | cornerBottomFram.X = Application.GetRealWidth(16); |
| | | cornerBottomFram.Y = middLayout.Bottom + Application.GetRealHeight(16); |
| | | cornerBottomFram.BackgroundColor = MusicColor.WhiteColor; |
| | |
| | | }; |
| | | this.AddChidren(btnTitle); |
| | | |
| | | cornerFram = new CornerFramLayout(343, 452, 17); |
| | | cornerFram = new CornerFramLayout(343, 452-30, 17); |
| | | this.AddChidren(cornerFram); |
| | | cornerFram.X = Application.GetRealWidth(16); |
| | | cornerFram.Y = btnTitle.Bottom + Application.GetRealHeight(16); |
| | |
| | | }; |
| | | this.AddChidren(btnTitle); |
| | | |
| | | cornerTopFram = new CornerFramLayout(343, 368, 17); |
| | | cornerTopFram = new CornerFramLayout(343, 368-24, 17); |
| | | cornerTopFram.X = Application.GetRealWidth(16); |
| | | cornerTopFram.Y = btnTitle.Bottom + Application.GetRealHeight(16); |
| | | this.AddChidren(cornerTopFram); |
| | |
| | | |
| | | |
| | | //菜单容器 |
| | | CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 292, 17); |
| | | CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 292-30, 17); |
| | | cornerBottomFram.X = Application.GetRealWidth(16); |
| | | cornerBottomFram.Y = middLayout.Bottom + Application.GetRealHeight(16); |
| | | cornerBottomFram.BackgroundColor = MusicColor.WhiteColor; |
| | |
| | | }; |
| | | this.AddChidren(btnTitle); |
| | | |
| | | cornerTopFram = new CornerFramLayout(343, 452, 17); |
| | | cornerTopFram = new CornerFramLayout(343, 452-30, 17); |
| | | cornerTopFram.X = Application.GetRealWidth(16); |
| | | cornerTopFram.Y = btnTitle.Bottom + Application.GetRealHeight(16); |
| | | this.AddChidren(cornerTopFram); |
| | |
| | | cornerTopFram.LoadButtonPage(AksCommonMethod.Current.GetTYYKeypadList(),new List<int> { 3, 4, 5 }); |
| | | |
| | | |
| | | CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 292, 17); |
| | | CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 292-30, 17); |
| | | cornerBottomFram.X = Application.GetRealWidth(16); |
| | | cornerBottomFram.Y = cornerTopFram.Bottom + Application.GetRealHeight(16); |
| | | cornerBottomFram.BackgroundColor = MusicColor.WhiteColor; |
| | |
| | | Width = Application.GetRealWidth(48), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | BackgroundColor = 0xff201F25, |
| | | Radius = (uint)Application.GetRealHeight(24), |
| | | Radius = (uint)Application.GetRealWidth(24), |
| | | |
| | | }; |
| | | layout.AddChidren(switchFl); |
| | |
| | | class CustomFrameLayout : FrameLayout |
| | | { |
| | | public const int widthFrameLayout = 36; |
| | | public const int heightFrameLayout = 49; |
| | | public const int heightFrameLayout = 49-6; |
| | | public CustomFrameLayout(int width = widthFrameLayout, int height = heightFrameLayout) |
| | | { |
| | | this.Width = Application.GetRealWidth(width); |
| | |
| | | SelectedTextColor = MusicColor.MusicTxet14SelectedColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Padding=new Padding(0,0,0,0), |
| | | }; |
| | | Button btnNumber = new Button |
| | | { |
| | |
| | | Width = Application.GetRealWidth(12), |
| | | Height = Application.GetRealWidth(12), |
| | | Gravity = Gravity.Center, |
| | | Radius = (uint)Application.GetRealHeight(6), |
| | | Radius = (uint)Application.GetRealWidth(6), |
| | | BackgroundColor=0x00000000, |
| | | SelectedBackgroundColor = 0xFFEFEFEF, |
| | | SelectedBackgroundColor = 0xFFF2F3F7, |
| | | }; |
| | | |
| | | public FrameLayout clickFl = new FrameLayout |