CrabtreeOn,印度客户定制APP,迁移2.0平台版本
JLChen
2022-01-12 407fae6f07a2a982a2a814c2f145c40733c966cb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
using System;
using Shared.SimpleControl.Pad.Music;
 
namespace Shared.SimpleControl.Pad
{
    public class UserDeviceToMusic :Shared.Dialog
    {
        FrameLayout bordorView;
        VerticalScrolViewLayout RoomListScrolView;
        PlayerPage playerPage = new PlayerPage();
       
 
 
        public  void ShowRoomMusciList ()
        {
            #region 标题
            var topView = new FrameLayout () {
                Y = Application.GetRealHeight (36),
                Height = Application.GetRealHeight (90),
                BackgroundColor = 0xFF2f2f2f
            };
            AddChidren (topView);
 
            var title = new Button () {
                TextAlignment = TextAlignment.Center,
                Text = Language.StringByID (R.MyInternationalizationString.Music),
                TextSize = 19,
            };
            topView.AddChidren (title);
 
            var back = new Button () {
                Height = Application.GetRealHeight (120),
                Width = Application.GetRealWidth (95),
                UnSelectedImagePath = "Item/Back.png",
                SelectedImagePath = "Item/BackSelected.png",
                Gravity = Gravity.CenterVertical,
            };
            topView.AddChidren (back);
            back.MouseUpEventHandler += (sender, e) => {
                playerPage.RemoveFromParent ();
                Close ();
                //UserMiddle.DeviceMode ();
            };
            var logo = new Button () {
               Width = Application.GetRealWidth (154),
                Height = Application.GetRealHeight (90),
                X = Application.GetRealWidth (486),
                UnSelectedImagePath = MainPage.LogoString,
            };
            topView.AddChidren (logo);
            var btnl = new Button () {
                Height = 1,
                BackgroundColor = 0xFF2F2F2F,
                Y = topView.Height - 1
            };
            topView.AddChidren (btnl);
            #endregion
 
            #region bordorView
            bordorView = new FrameLayout () {
                Width = Application.GetRealWidth (640),
                Height = Application.GetRealHeight (Application.DesignHeight - 150),
                Y = Application.GetRealHeight (150),
                BackgroundColor = 0xff2F2F2F,
            };
            AddChidren (bordorView);
 
 
          
            bordorView.AddChidren (playerPage);
 
            #endregion
 
            #region ControlBodyView
 
            var controlBodyView = new FrameLayout () {
                Width = Application.GetRealWidth (Application.DesignWidth) - bordorView.Width,
                Height = Application.GetRealHeight (Application.DesignHeight - 150),
                X = bordorView.Right,
                Y = bordorView.Y,
                //BackgroundColor = 0xFF121212
                BackgroundImagePath = "MusicIcon/MusicBackgroun.png",
            };
            AddChidren (controlBodyView);
            #endregion
 
            playerPage.Show (controlBodyView, bordorView, false);
            
            Show ();
        }
 
    }
}