From 68cda990f230f7b065938ff8b309f529569620d5 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Tue, 18 Jun 2024 20:18:05 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E9=BB=98=E8=AE=A4=E8=AE=BE?= =?utf8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/message/src/MessageShowView.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageShowView.cpp b/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageShowView.cpp index 012b1f4af..78beb4f51 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageShowView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageShowView.cpp @@ -36,11 +36,13 @@ namespace OHOS static constexpr const int kTimeFontSize = 28; static constexpr const char *kTimeViewId = "time"; // static constexpr const Color kTimeTextColor = Color::Gray(); - +#if 0 std::string titleStr = "12306中国高速铁路"; std::string timeStr = "2023.12.26 17:23"; std::string messageStr = "【铁路12306】系统已自动为您生成订单EC09828333,04月23日G2231次,深圳北站13:31开。请您在2小时内完成支付。您可通过以下链接进行支付。https://www.12306.cn/index/"; - +#endif + std::string titleStr, timeStr, messageStr; + MessageShowView::MessageShowView() { g_pMessageShowView = this; @@ -167,7 +169,7 @@ namespace OHOS InitializeButton(messageButton, 33, 157, 380, 350, "message"); messageButton->SetStyle(STYLE_BORDER_RADIUS, 30); messageButton->SetText(messageStr.c_str()); - //messageButton->SetAlign(TEXT_ALIGNMENT_LEFT); + // messageButton->SetAlign(TEXT_ALIGNMENT_LEFT); messageButton->SetTextColor(Color::Gray()); messageButton->SetTouchable(false); messageButton->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30); -- 2.17.1