From c1de48884fa145a16a0f8bcee93274dcfaa0ff82 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期四, 07 五月 2020 10:40:28 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev-tzy' into dev-2020xm
---
ZigbeeApp/Shared/Phone/Device/CommonForm/CommonFormResouce.cs | 50 +++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 39 insertions(+), 11 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/CommonFormResouce.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/CommonFormResouce.cs
index 624973a..2addb77 100755
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/CommonFormResouce.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/CommonFormResouce.cs
@@ -11,14 +11,23 @@
public const int AppRealWidth = 1080;
/// <summary>
+ /// 14
+ /// </summary>
+ public const int TextSize = 14;
+ /// <summary>
+ /// 16
+ /// </summary>
+ public const int TextSize_Selected = 16;
+
+ /// <summary>
/// 瀛椾綋12
/// </summary>
public const int loginTextSize = 12;
/// <summary>
/// 鍗犱綅瀛椾綋澶у皬
- /// 12
+ /// 14
/// </summary>
- public const int PlaceHolderTextSize = 12;
+ public const int PlaceHolderTextSize = 14;
/// <summary>
/// Row_Height
@@ -45,13 +54,13 @@
/// </summary>
public const int TopFrameLayout_Height = 184;
/// <summary>
- /// topview 鐘舵�佹爮楂樺害 60
+ /// topview 鐘舵�佹爮楂樺害 74
/// </summary>
- public const int TopStatuFrameLayout_Height = 60;
+ public const int TopStatuFrameLayout_Height = 74;
/// <summary>
- /// topview 鐘舵�佹爮楂樺害 124
+ /// topview 鐘舵�佹爮楂樺害 110
/// </summary>
- public const int Topview_Height = 124;
+ public const int Topview_Height = 110;
/// <summary>
/// 鏍囬澶у皬 17
@@ -196,18 +205,22 @@
/// <returns></returns>
public static string GetTimeString(int second)
{
- string timeStr=string.Empty;
+ if (second == 0)
+ {
+ return null;
+ }
+ string timeStr = string.Empty;
int hour = second / 3600;
int minu = second % 3600 / 60;
int sec = second % 60;
if (hour > 0)
{
timeStr += $"{hour}{Language.StringByID(R.MyInternationalizationString.Hour)}";
- if (minu>0)
+ if (minu > 0)
{
timeStr += $"{minu}{Language.StringByID(R.MyInternationalizationString.Minute)}";
}
- if(sec>0)
+ if (sec > 0)
{
timeStr += $"{sec}{Language.StringByID(R.MyInternationalizationString.Second)}";
}
@@ -216,7 +229,7 @@
else if (minu > 0)
{
timeStr += $"{minu}{Language.StringByID(R.MyInternationalizationString.Minute)}";
- if(sec>0)
+ if (sec > 0)
{
timeStr += $"{sec}{Language.StringByID(R.MyInternationalizationString.Second)}";
}
@@ -227,6 +240,21 @@
return $"{sec}{Language.StringByID(R.MyInternationalizationString.Second)}";
}
}
- }
+ /// <summary>
+ /// 鏄剧ず鎻愮ず
+ /// </summary>
+ /// <param name="r">The red component.</param>
+ public static void ShowTip(string msg)
+ {
+ Application.RunOnMainThread(() =>
+ {
+ var myTip = new Tip();
+ myTip.Direction = AMPopTipDirection.None;
+ myTip.CloseTime = 2;
+ myTip.Text = msg;
+ myTip.Show(Common.CommonPage.Instance);
+ });
+ }
+ }
}
--
Gitblit v1.8.0