namespace OHOS
{
static BPDetectBeginView *g_pBPDetectBeginView{nullptr};
- static const char *BPBACKPATH = "/user/res/BPCalibration/calibration_background.bin";
+ static const char *BPBACKPATH = "/user/res/BPCalibration/W.bin";
+ static const char *BPLINEPATH = "/user/res/BPCalibration/Q.bin";
+
BPDetectBeginView::BPDetectBeginView()
{
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "BPDetectBeginView::BPDetectBeginView");
delete background;
background = nullptr;
}
+ if (lineground != nullptr)
+ {
+ delete lineground;
+ lineground = nullptr;
+ }
if (calibrationLabel != nullptr)
{
delete calibrationLabel;
bool BPDetectBeginView::Initbackground()
{
background = new UIImageView();
- background->SetPosition(0, 0, 466, 466);
+ background->SetPosition(0, 62, 466, 342);
background->SetSrc(BPBACKPATH);
+ lineground = new UIImageView();
+ lineground->SetPosition(49, 95, 356, 161);
+ lineground->SetSrc(BPLINEPATH);
+
group->Add(background);
+ group->Add(lineground);
return true;
}
/***