From: Caisking <3449750381@qq.com> Date: Wed, 4 Sep 2024 03:44:45 +0000 (+0800) Subject: #455运动准备界面,运动名称往上移一点,所有的运动界面都这样 X-Git-Tag: release_V1.2.70_20241020_135402~518^2~38 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=b9d0e47b8b6f24a7dadf5c0781b7a8da4405f273;p=mirrors%2FFD230.git #455运动准备界面,运动名称往上移一点,所有的运动界面都这样 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingNomalView.cpp b/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingNomalView.cpp index 859377788..54d3cf3e6 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingNomalView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingNomalView.cpp @@ -47,15 +47,15 @@ namespace OHOS UIResourceTextId sport_id = TraingModel::GetInstance()->GetSportEvent(); // 初始化Lable - InitLabelExt(sporttitle_, 137, 52, 200, 80, "label1", sport_id, DEFAULT_VECTOR_FONT_FILENAME, 30); + InitLabelExt(sporttitle_, 83, 50, 300, 35, "label1", sport_id, DEFAULT_VECTOR_FONT_FILENAME, 30); container_->Add(sporttitle_); + // 初始化Button InitButton(buttonGo_, 133, 133, 200, 200, BUTTONGO); - // Set additional property buttonGo_->SetImageSrc(GO_1_IMAGE, GO_1_IMAGE); // 显示设置目标 - InitButtonExt(buttonSet_, 160, 370, 150, 50, BUTTONSET, STR_SET_GOALS, 30); + InitButtonExt(buttonSet_, 68, 370, 330, 35, BUTTONSET, STR_SET_GOALS, 30); if (TraingModel::GetInstance()->GetTagStr() != "") { buttonSet_->SetText((TraingModel::GetInstance()->GetTagStr()).c_str());