WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "circleProgress new fail");
return false;
}
- circleProgress_->SetPosition(-1, 0);
- circleProgress_->Resize(466, 466);
- circleProgress_->SetViewId("circleProgress");
+ circleProgress_->SetPosition(0, 0);
+ circleProgress_->Resize(466, 466);
+ circleProgress_->SetViewId("circleProgress1");
circleProgress_->SetStyle(STYLE_BACKGROUND_OPA, 0x00);
circleProgress_->SetBackgroundStyle(STYLE_BACKGROUND_COLOR, 0xff000000);
- circleProgress_->SetBackgroundStyle(STYLE_BACKGROUND_OPA, 0x00);
- circleProgress_->SetBackgroundStyle(STYLE_LINE_HEIGHT, 200);
- circleProgress_->SetBackgroundStyle(STYLE_LINE_WIDTH, 21);
- circleProgress_->SetBackgroundStyle(STYLE_LINE_OPA, 0x00);
circleProgress_->SetForegroundStyle(STYLE_BACKGROUND_COLOR, 0xff2195F6);
- circleProgress_->SetForegroundStyle(STYLE_BORDER_WIDTH, 200);
- circleProgress_->SetForegroundStyle(STYLE_BORDER_RADIUS, 200);
circleProgress_->SetForegroundStyle(STYLE_BORDER_COLOR, 0xff000000);
- circleProgress_->SetForegroundStyle(STYLE_LINE_HEIGHT, 35);
- circleProgress_->SetForegroundStyle(STYLE_LINE_COLOR, 0xff5320E2);
+ circleProgress_->SetForegroundStyle(STYLE_LINE_COLOR, 0xff5320e2);
circleProgress_->SetForegroundStyle(STYLE_LINE_WIDTH, 20);
circleProgress_->SetCenterPosition(233, 229);
circleProgress_->SetRadius(205);
circleProgress_->SetStartAngle(320);
circleProgress_->SetEndAngle(40);
- circleProgress_->SetValue(0);
- circleProgress_->SetBackgroundImagePosition(36, 26);
+ circleProgress_->SetValue(100);
/* -------------------------------- 将组件添加到根视图 ------------------------------- */
Add(progress_image);
Add(circleProgress_);