From: hcj <1224667075@qq.com> Date: Thu, 14 Nov 2024 03:34:58 +0000 (+0800) Subject: 增加长按删除文字提示 X-Git-Tag: fd230_release_V1.3.102~85 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1398%2F1;p=mirrors%2FFD230.git 增加长按删除文字提示 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/phone/src/MainPhoneView.cpp b/code/sdk/application/wearable/fd230app/nativeui/phone/src/MainPhoneView.cpp index 638de92ff..4e0361450 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/phone/src/MainPhoneView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/phone/src/MainPhoneView.cpp @@ -684,8 +684,8 @@ namespace OHOS labelParam.width = 300; labelParam.height = 100; labelParam.fontSize = 22; - labelParam.lineHeigh = 15; - labelParam.text = "注:只保留最近20条通话记录"; + labelParam.lineHeigh = 25; + labelParam.text = "注:只保留最近20条通话记录\n长按删除"; labelParam.lineBreakMode = UILabel::LINE_BREAK_MARQUEE, hintCallsLabel = TelephonyInitInterface::LabelViewInit(labelParam,Color::GetColorFromRGBA(0x99, 0x99, 0x99, 0xff)); @@ -694,8 +694,8 @@ namespace OHOS WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainPhoneView::MainPhoneViewTitleLabel new fail!"); } hintCallsLabel->SetVisible(true); - hintCallsLabel->SetTextId(STR_NOTE_RECENT_CALLS_LIMITATION); - + //hintCallsLabel->SetTextId(STR_NOTE_RECENT_CALLS_LIMITATION); + hintCallsLabel->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER); // 设置此文本的对齐模式 MainPhoneViewScrollView->Add(hintCallsLabel); }