-/***
- * @Date: 2024-06-21 09:56:18
- * @LastEditors: Caisking 3449750381@qq.com
- * @LastEditTime: 2024-08-12 16:03:32
- * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/message/include/MessageShowView.h
- */
-/***
- * @Date: 2024-06-21 09:56:18
- * @LastEditors: Caisking 3449750381@qq.com
- * @LastEditTime: 2024-08-09 18:56:33
- * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/message/include/MessageShowView.h
- */
+
#ifndef MessageShow_VIEW_H
#define MessageShow_VIEW_H
UILabelButton *messageButton{nullptr}; // 消息
UILabelButtonExt *deleteButton{nullptr}; // 清除按键
+ UIImageView *background{nullptr};
+
bool viewInitStatus{false};
std::string titleStr;
std::string timeStr;
delete deleteButton;
deleteButton = nullptr;
+
+ delete background;
+ background = nullptr;
}
void MessageShowView::InitializeLabel(UILabel *label, int posX, int posY, int width, int height, const char *viewId, int fontSize)
messageButton->SetPosition(33, 157, 380, updatedRectWidth);
deleteButton->SetPosition(43, 157 + updatedRectWidth + 20, 380, 100);
+ /*加载空白*/
+ CreateLine(background, 43, 157 + updatedRectWidth + 20 + 50, 380, 100,
+ "line");
+ background->SetVisible(false);
+ container_->Add(background);
+
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "updatedRectWidth %d updatedLabelWidth %d lines %d \r\n", updatedRectWidth, updatedLabelWidth, lines);
}
void MessageShowView::InitView()
container_->Add(deleteButton);
/* -------------------------------------------------------------------------- */
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "InitView is ok!");
+
// UpdateMessage();
}
titleStr = data->labelTitle;
timeStr = data->labelTime;
messageStr = data->labelDetails;
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UpdateMessage title %s time %s message %s", titleStr.c_str(), timeStr.c_str(), messageStr.c_str());
+ WEARABLE_LOGED(WEARABLE_LOG_MODULE_APP, "UpdateMessage title %s time %s message %s", titleStr.c_str(), timeStr.c_str(), messageStr.c_str());
}
void MessageShowView::PreLoad(void)
{