57 lines
1.7 KiB
C++
57 lines
1.7 KiB
C++
/*----------------------------------------------------------------------------
|
|
* Copyright (c) TJD Technologies Co., Ltd. 2024. All rights reserved.
|
|
*
|
|
* Description: TjdUiAppMainPageHealth.h
|
|
*
|
|
* Author: luziquan@ss-tjd.com
|
|
*
|
|
* Create: 2024-12-27
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
#ifndef TJD_UI_APP_MAIN_PAGE_HEALTH_H
|
|
#define TJD_UI_APP_MAIN_PAGE_HEALTH_H
|
|
|
|
#include "components/ui_canvas_ext.h"
|
|
#include "components/ui_card_page.h"
|
|
#include "components/ui_image_animator.h"
|
|
#include "components/ui_image_view.h"
|
|
#include "components/ui_label.h"
|
|
#include "components/ui_view_group.h"
|
|
#include "ui_label_ext.h"
|
|
#include <vector>
|
|
namespace TJD {
|
|
class TjdUiAppMainPageHealth : public OHOS::UICardPage
|
|
{
|
|
public:
|
|
TjdUiAppMainPageHealth();
|
|
virtual ~TjdUiAppMainPageHealth();
|
|
static TjdUiAppMainPageHealth *GetInstance(void);
|
|
void PreLoad(void) override;
|
|
void UnLoad(void) override;
|
|
void NotifyTick(void);
|
|
|
|
private:
|
|
void HrPointArrayInit(void);
|
|
void InitView(void);
|
|
void UpdateValue(void);
|
|
bool viewiInitStatus{false};
|
|
|
|
OHOS::UIViewGroup *container_ = nullptr;
|
|
OHOS::UIImageView *chartBg_ = nullptr;
|
|
OHOS::UIImageAnimatorView *imageAnimator_{nullptr};
|
|
OHOS::UICanvasExt *canvas_{nullptr};
|
|
OHOS::UILabel *hrTitleValue_ = nullptr;
|
|
OHOS::UILabelExt *hrTitleUnit_ = nullptr;
|
|
OHOS::UIImageView *hrBg_ = nullptr;
|
|
OHOS::UILabel *hrValue_ = nullptr;
|
|
OHOS::UIImageView *spo2Bg_ = nullptr;
|
|
OHOS::UILabel *spo2Value_ = nullptr;
|
|
OHOS::UIImageView *sleepBg_ = nullptr;
|
|
OHOS::UILabel *sleepValue_ = nullptr;
|
|
std::vector<int> hrDayArray_;
|
|
};
|
|
|
|
} // namespace TJD
|
|
|
|
#endif
|