int updatedLabelWidth = baseLabelWidth + (additionalLines * extraLabelWidthPerLine);
// 输出配置结果
- messageButton->SetPosition(33, 157, 400, updatedRectWidth);
+ messageButton->SetPosition(33, 157, 380, updatedRectWidth);
deleteButton->SetPosition(43, 157 + updatedRectWidth + 20, 380, 100);
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "updatedRectWidth %d updatedLabelWidth %d lines %d \r\n", updatedRectWidth, updatedLabelWidth, lines);
time->SetVisible(true);
/* -------------------------------------------------------------------------- */
/*初始化消息内容*/
- InitializeButton(messageButton, 33, 157, 400, defaultRectWidth, "message");
- messageButton->SetStyle(STYLE_BORDER_RADIUS, 30);
+ InitializeButton(messageButton, 33, 157, 380, defaultRectWidth, "message");
+ messageButton->SetStyle(STYLE_BACKGROUND_COLOR, 0xff191919);
+ messageButton->SetStyle(STYLE_BORDER_RADIUS, 20);
+ messageButton->SetStyle(STYLE_PADDING_LEFT, 15);
+ messageButton->SetTextColor(Color::GetColorFromRGBA(0x99, 0x99, 0x99, 0xff));
messageButton->SetAlign(TEXT_ALIGNMENT_LEFT);
- messageButton->SetTextColor(Color::Gray());
+ messageButton->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);
+ messageButton->SetStyleForState(STYLE_BACKGROUND_COLOR, 0xff000000, UIButton::PRESSED);
+ messageButton->SetStyleForState(STYLE_BORDER_COLOR, 0xff0b1928, UIButton::PRESSED);
+ messageButton->SetStyleForState(STYLE_BORDER_RADIUS, 20, UIButton::PRESSED);
messageButton->SetTouchable(false);
- // messageButton->SetText(messageStr.c_str());
+ messageButton->SetText(messageStr.c_str());
// messageButton->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);
/* -------------------------------------------------------------------------- */
InitUILabel(message, 63, 165, 340, 100, "message", messageStr.c_str(), DEFAULT_VECTOR_FONT_FILENAME, 30);
container_->Add(title);
container_->Add(time);
container_->Add(messageButton);
- container_->Add(message);
+ // container_->Add(message);
container_->Add(deleteButton);
/* -------------------------------------------------------------------------- */
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "InitView is ok!");
TraingModel::GetInstance()->SetSportState(\r
ExerciseState::Start); // 设置运动状态为开始\r
TraingModel::GetInstance()->SetTimestamp();\r
- uapi_add_sport_vote(); // 保护进程\r
+ // uapi_add_sport_vote(); // 保护进程\r
g_pTraingCardView = this;\r
}\r
\r
g_pTraingCardView = nullptr;\r
DisableTimer(); // 关闭计时器\r
TraingModel::GetInstance()->SetTimestamp();\r
- uapi_remove_sport_vote(); // 移除\r
+ // uapi_remove_sport_vote(); // 移除\r
}\r
\r
TraingCardView *TraingCardView::GetInstance() { return g_pTraingCardView; }\r
{ConfigDataType::DATATYPE_BOOL, "a2dp", "true" },// CONFIGMODEL_ITEM_A2DP
{ConfigDataType::DATATYPE_BOOL, "spp", "true" },// CONFIGMODEL_ITEM_SPP,//SPP蓝牙开关
{ConfigDataType::DATATYPE_INT, "traningfreq", "10" },// CONFIGMODEL_ITEM_TRANING_FREQ //训练实时数据上传频率//单位秒
- {ConfigDataType::DATATYPE_INT, "traningauto", "0" },//CONFIGMODEL_ITEM_TRANING_AUTO,//开启关闭自动获取实时数据
+ {ConfigDataType::DATATYPE_INT, "traningauto", "1" },//CONFIGMODEL_ITEM_TRANING_AUTO,//开启关闭自动获取实时数据
{ConfigDataType::DATATYPE_INT, "traningheart", "190" },//CONFIGMODEL_ITEM_TRAINING_HEART_MAX//训练最高心率
//心率相关
{ConfigDataType::DATATYPE_INT, "heartrate_freq", "30" },// CONFIGMODEL_ITEM_HEARTRATE_DETECTED//心率周期检测频率