JLChen
2020-06-04 6d55af8792cf8fbef0055e677b900fc352dba9a2
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
using System;
 
namespace Shared.SimpleControl.Phone
{
    /// <summary>
    /// 用户界面标题栏
    /// </summary>
    public class UserTop : FrameLayout
    {
        public UserTop ()
        {
            Height = Application.GetRealHeight (126);
            BackgroundColor = SkinStyle.Current.MainColor;
 
            initTopFrameLaout ();
        }
 
        void initTopFrameLaout ()
        {
            Button LogoButton = new Button () {
                Width = Application.GetRealWidth (154),
                Height = Application.GetRealHeight (90),
                UnSelectedImagePath = MainPage.LogoString,
            };
            AddChidren (LogoButton);
 
            Button NameButton = new Button () {
                Width = Application.GetRealWidth (400),
                Height = Application.GetMinReal (90),
                Text = MainPage.SoftTitle,
                TextColor = SkinStyle.Current.TextColor1,
                Gravity = Gravity.CenterHorizontal,
                TextAlignment = TextAlignment.Center,
                Y = Application.GetRealHeight (30),
                TextSize = 20,
            };
            AddChidren (NameButton);
 
        }
    }
}