| | |
| | | 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 |