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