N9:星辰康瑞图片修改,title修改 2825/1 2825/head 2827/target/1
authorluozheng <1732036298@qq.com>
Sat, 29 Nov 2025 08:02:18 +0000 (16:02 +0800)
committerluozheng <1732036298@qq.com>
Sat, 29 Nov 2025 08:02:18 +0000 (16:02 +0800)
code/sdk/application/wearable/n9/nativeapp/nativeui/aivoice/include/AiVoiceView.h
code/sdk/application/wearable/n9/nativeapp/nativeui/aivoice/src/AiVoiceBluetoothFailedStartView.cpp
code/sdk/application/wearable/n9/nativeapp/nativeui/aivoice/src/AiVoiceView.cpp
code/sdk/application/wearable/n9/nativeapp/nativeui/aivoice/src/AivoiceConnectTimeoutView.cpp
code/sdk/application/wearable/n9/nativeapp/nativeui/aivoice/src/AivoiceMobileDataFailedStartView.cpp
code/sdk/application/wearable/n9/nativeapp/nativeui/aivoice/src/AivoiceReturnResultTextView.cpp
code/sdk/files/fd230/fs/user/res/AIVoice/aimodels/aimodes_xingchen.bin
code/sdk/files/n9/fs/user/res/AIVoice/aimodels/aimodes_xingchen.bin

index f217614..c86a2ef 100644 (file)
@@ -16,6 +16,7 @@
 #include "components/ui_image_view.h"
 #include "components/ui_picker.h"
 #include "components/ui_slider.h"
+#include "aivoice/include/AiVoiceModel.h"
 #include "aivoice/include/AiVoiceBluetoothFailedStartView.h"
 #include "aivoice/include/AivoiceMobileDataFailedStartView.h"
 #include "aivoice/include/AivoiceConnectTimeoutView.h"
index b9705bb..80752ad 100644 (file)
@@ -93,7 +93,7 @@ namespace OHOS
         if(labelconfig.textId == STR_JIUTIAN)
         { 
             #if AI_VOICE_XINGCHEN
-            label->SetText("星辰康瑞");
+            label->SetText("天翼AI");
             #else
             label->SetText("中国移动智能助理灵犀");
             #endif
@@ -287,7 +287,7 @@ namespace OHOS
             if(textId == STR_JIUTIAN)
             { 
                 #if AI_VOICE_XINGCHEN
-                title->SetText("星辰康瑞");
+                title->SetText("天翼AI");
                 #else
                 title->SetText("中国移动智能助理灵犀");
                 #endif
index ffc7861..d4b460b 100644 (file)
@@ -182,7 +182,7 @@ namespace OHOS
         if(labelconfig.textId == STR_JIUTIAN)
         {
             #if AI_VOICE_XINGCHEN
-            label->SetText("星辰康瑞");
+            label->SetText("天翼AI");
             #else
             label->SetText("中国移动智能助理灵犀");
             #endif
@@ -320,6 +320,14 @@ namespace OHOS
             imagecinfig.src = it->second;
         }
 
+        if ( it->first == STR_JIUTIAN)
+        {
+            #if (AI_VOICE_XINGCHEN)
+            imagecinfig.x = 60;
+            #else
+            imagecinfig.x = 173;
+            #endif
+        }
         aiModelImage = AiVoiceViewImageView(imagecinfig);
         if (aiModelImage == nullptr)
         {
@@ -1177,7 +1185,7 @@ namespace OHOS
             if(textId == STR_JIUTIAN)
             {
                 #if AI_VOICE_XINGCHEN
-                title->SetText("星辰康瑞");
+                title->SetText("天翼AI");
                 #else
                 title->SetText("中国移动智能助理灵犀");
                 #endif
@@ -1191,8 +1199,21 @@ namespace OHOS
             auto it = TextIdToImagePath.find(textId);
             if (it != TextIdToImagePath.end())
             {
+                if(it->first == STR_JIUTIAN)
+                {
+                    #if (AI_VOICE_XINGCHEN)
+                    aiModelImage->SetX(60);
+                    #else
+                    aiModelImage->SetX(173);
+                    #endif
+                }
+                else
+                {
+                    aiModelImage->SetX(173);
+                }
                 aiModelImage->SetSrc(it->second);
                 aiModelImage->Invalidate();
+                scrollView->Invalidate();
             }
         }
 
index 5d65198..8a2d114 100644 (file)
@@ -85,7 +85,7 @@ namespace OHOS
         if(labelconfig.textId == STR_JIUTIAN)
         {
             #if AI_VOICE_XINGCHEN
-            label->SetText("星辰康瑞");
+            label->SetText("天翼AI");
             #else
             label->SetText("中国移动智能助理灵犀");
             #endif
@@ -278,7 +278,7 @@ namespace OHOS
             if(textId == STR_JIUTIAN)
             {
                 #if AI_VOICE_XINGCHEN
-                title->SetText("星辰康瑞");
+                title->SetText("天翼AI");
                 #else
                 title->SetText("中国移动智能助理灵犀");
                 #endif
index 9aef7a8..ecab7a7 100644 (file)
@@ -93,7 +93,7 @@ namespace OHOS
         if(labelconfig.textId == STR_JIUTIAN)
         {
             #if AI_VOICE_XINGCHEN
-            label->SetText("星辰康瑞");
+            label->SetText("天翼AI");
             #else
             label->SetText("中国移动智能助理灵犀");
             #endif
@@ -288,7 +288,7 @@ namespace OHOS
             if(textId == STR_JIUTIAN)
             {
                 #if AI_VOICE_XINGCHEN
-                title->SetText("星辰康瑞");
+                title->SetText("天翼AI");
                 #else
                 title->SetText("中国移动智能助理灵犀");
                 #endif
index fbced1a..4795829 100644 (file)
@@ -136,7 +136,7 @@ namespace OHOS
         if(labelconfig.textId == STR_JIUTIAN)
         {
             #if AI_VOICE_XINGCHEN
-            label->SetText("星辰康瑞");
+            label->SetText("天翼AI");
             #else
             label->SetText("中国移动智能助理灵犀");
             #endif
@@ -368,7 +368,7 @@ namespace OHOS
             if(textId == STR_JIUTIAN)
             {
                 #if AI_VOICE_XINGCHEN
-                title->SetText("星辰康瑞");
+                title->SetText("天翼AI");
                 #else
                 title->SetText("中国移动智能助理灵犀");
                 #endif
index 06ae1f4..21737a7 100644 (file)
Binary files a/code/sdk/files/fd230/fs/user/res/AIVoice/aimodels/aimodes_xingchen.bin and b/code/sdk/files/fd230/fs/user/res/AIVoice/aimodels/aimodes_xingchen.bin differ
index 06ae1f4..21737a7 100644 (file)
Binary files a/code/sdk/files/n9/fs/user/res/AIVoice/aimodels/aimodes_xingchen.bin and b/code/sdk/files/n9/fs/user/res/AIVoice/aimodels/aimodes_xingchen.bin differ