优化默认设置 311/2 311/head
authorCaisking <3449750381@qq.com>
Tue, 18 Jun 2024 12:18:05 +0000 (20:18 +0800)
committerCaisking <3449750381@qq.com>
Tue, 18 Jun 2024 12:18:05 +0000 (20:18 +0800)
code/sdk/application/wearable/fd230app/nativeui/message/src/MessageShowView.cpp

index 012b1f4..78beb4f 100644 (file)
@@ -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);