bool RespiratoryTrainingPresenter::OnDragEnd(UIView &view, const DragEvent &event)
{
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingPresenter::OnDragEnd");
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RespiratoryTrainingPresenter::OnDragEnd");
if (event.GetDragDirection() == DragEvent::DIRECTION_LEFT_TO_RIGHT && RespiratoryTrainingPresenter::X_DRAG_FLAG)
{
std::string viewId = view.GetViewId();
void RespiratoryTrainingView::OnStart()
{
+
+ RootView::GetInstance()->SetDraggable(true);
+ RootView::GetInstance()->SetTouchable(true);
+ RootView::GetInstance()->SetOnDragListener(presenter_);
+
RespiratoryTrainingViewInit();
}
}
\ No newline at end of file
/*OnStart 增加界面控制*/
void SleepControlView::OnStart()
{
- View<SleepControlPresenter>::OnStart();
- AddViewToRootContainer(new UIViewGroup());
- GetRootContainer()->SetPosition(0, 0, Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight());
+
GetRootContainer()->SetTouchable(true);
GetRootContainer()->SetDraggable(true);
AddViewToRootContainer(GetSleepControlPageView());