优化通话界面 3457/1 3457/head 3464/target/1 3466/target/1
authorxue <2144439972@qq.com>
Thu, 11 Jun 2026 02:32:00 +0000 (10:32 +0800)
committerxue <2144439972@qq.com>
Thu, 11 Jun 2026 02:32:00 +0000 (10:32 +0800)
code/sdk/application/wearable/n9/nativeapp/nativeui/makephone/src/CallingView.cpp

index 5ec8378..3790884 100644 (file)
@@ -142,7 +142,9 @@ bool CallingView::InitAddOnclickevent()
     imageHandUp->SetOnClickListener(clickLeftListener);
     imageHorns->SetOnClickListener(clickLeftListener);
     imagedial->SetOnClickListener(clickLeftListener);
-    imageheadset->SetOnClickListener(clickLeftListener);
+    if (imageheadset != nullptr) {
+        imageheadset->SetOnClickListener(clickLeftListener);
+    }
 
     for( int i=0;i<12;i++)
     {
@@ -185,7 +187,7 @@ bool CallingView::InitImageViewDisplay()
     if (imageHandUp == nullptr) {
         return false;
     }
-    imageHandUp->SetPosition(188, 340); // 30 :  offset
+    imageHandUp->SetPosition(296,316); // 原蓝牙耳机按钮位置
     imageHandUp->SetSrc(PNG_230_VECTOR_IMAGE_PATH);
     imageHandUp->SetTouchable(true);
     imageHandUp->SetViewId("callingHandUp");
@@ -205,7 +207,7 @@ bool CallingView::InitImageViewDisplay()
     if (imagedial == nullptr) {
         return false;
     }
-    imagedial->SetPosition(80, 296); // 30 :  offset
+    imagedial->SetPosition(80, 316); // 30 :  offset
     imagedial->SetSrc(PNG_230_DIAL_IMAGE_PATH);
     imagedial->SetTouchable(true);
     imagedial->SetViewId("dial");
@@ -238,8 +240,9 @@ bool CallingView::InitImageViewDisplay()
     }
     
     
-    imageheadset->SetTouchable(true);
-   
+    imageheadset->SetTouchable(false);
+    imageheadset->SetVisible(false);
+
     group->Add(imageheadset);
 
     imageperson = new UIImageView();