黄学彪
2020-12-17 9f326f4000847e6167d8166fa2f6a66f53cb3734
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
using System;
using System.Collections.Generic;
using System.Text;
 
namespace Shared.Phone.UserCenter.Guide
{
    /// <summary>
    /// 房间引导界面
    /// </summary>
    public class GuideRoomForm : GuideCommonForm
    {
        #region ■ 变量声明___________________________
 
        #endregion
 
        #region ■ 初始化_____________________________
 
        /// <summary>
        /// 显示界面
        /// </summary>
        public override void ShowFrom()
        {
            base.ShowFrom();
 
            var frameTop = new FrameLayout();
            frameTop.Height = Application.GetRealHeight(279);
            frameTop.BackgroundColor = 0xad000000;
            this.AddChidren(frameTop);
 
            //蒙上阴影
            var frameBottom = new FrameLayout();
            frameBottom.Y = Application.GetRealHeight(803);
            frameBottom.Height = Application.GetRealHeight(1317);//就是要长过它
            frameBottom.BackgroundColor = 0xad000000;
            this.AddChidren(frameBottom);
            //左箭头
            var btnLeftIcon = new IconViewControl(72);
            btnLeftIcon.UnSelectedImagePath = "Guide/LeftIcon.png";
            btnLeftIcon.X = Application.GetRealWidth(17);
            btnLeftIcon.Y = Application.GetRealHeight(176);
            frameBottom.AddChidren(btnLeftIcon);
            //右箭头
            var btnRightIcon = new IconViewControl(72);
            btnRightIcon.UnSelectedImagePath = "Guide/RightIcon.png";
            btnRightIcon.X = Application.GetRealWidth(994);
            btnRightIcon.Y = Application.GetRealHeight(176);
            frameBottom.AddChidren(btnRightIcon);
 
            //左右滑动,切换房间卡片
            var btnCard = new NormalViewControl(650, 75, true);
            btnCard.Y = Application.GetRealHeight(175);
            btnCard.TextID = R.MyInternationalizationString.uSlideLeftAndRightToSwitchRoomCards;
            btnCard.TextColor = UserCenterColor.Current.White;
            btnCard.TextAlignment = TextAlignment.Center;
            btnCard.TextSize = 18;
            btnCard.IsBold = true;
            btnCard.Gravity = Gravity.CenterHorizontal;
            frameBottom.AddChidren(btnCard);
            //虚线箭头
            var btnArrows = new PicViewControl(51, 171);
            btnArrows.UnSelectedImagePath = "Guide/Arrows1.png";
            btnArrows.X = Application.GetRealWidth(625);
            frameBottom.AddChidren(btnArrows);
 
            //我知道了
            var btnKnwon = this.AddIKnwonButton();
            btnKnwon.ButtonClickEvent += (sender, e) =>
            {
                this.RemoveFromParent();
                var form = new GuideForm1();
                form.ShowFrom();
            };
        }
 
        #endregion
    }
}