+/*** \r
+ * @Author: Caisking 3449750381@qq.com\r
+ * @Date: 2023-12-12 16:55:29\r
+ * @LastEditors: Caisking 3449750381@qq.com\r
+ * @LastEditTime: 2024-01-15 16:40:09\r
+ * @FilePath: /1.FD230/FD230/code/sdk/application/wearable/nativeapp/nativeui/main/include/MainViewSample.h\r
+ * @Description: \r
+ * @\r
+ * @Copyright (c) 2024 by Caisking , All Rights Reserved. \r
+ */\r
/*\r
* Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved.\r
* Description: MainViewSample\r
PullUpDownView *dropDownView{nullptr};\r
UICardPage *messageView{nullptr};\r
UILabel *messageLable{nullptr};\r
- MainClockView *mainClockView{nullptr};\r
+ Digital_clockView *mainClockView{nullptr};\r
ActivityWeekView *activityWeekView{nullptr};\r
PlayersView *playersView{nullptr};\r
CompassControlView *compassControlView{nullptr};\r
};\r
\r
static const MainViewMapper PageMapper[] = {\r
- {WATCH_FACE, &MainViewSample::InitWatchFacePage},\r
{HEART_RATE, &MainViewSample::InitHeartRatePage},\r
{COMPASS, &MainViewSample::InitCompassPage},\r
{ACTIVITY, &MainViewSample::InitActivityPage},\r
\r
UICardPage *MainViewSample::InitWatchFacePage(void)\r
{\r
- mainClockView = new MainClockView();\r
+ mainClockView = new Digital_clockView();\r
if (mainClockView == nullptr) {\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainClockView new fail");\r
return nullptr;\r
if (heartRateView != nullptr && pageIndex == ScreenModels::GetInstance()->GetCardPage(HEART_RATE)) {\r
heartRateView->HeartbeatImageAnimatorStart();\r
}\r
- if ((mainClockView != nullptr && pageIndex == ScreenModels::GetInstance()->GetCardPage(WATCH_FACE)) &&\r
- mainSwipeGroup->GetCurrentPageId(UISwipeView::VERTICAL) == 2) {\r
- mainClockView->ClockAnimatorStart();\r
- }\r
+ // if ((mainClockView != nullptr && pageIndex == ScreenModels::GetInstance()->GetCardPage(WATCH_FACE)) &&\r
+ // mainSwipeGroup->GetCurrentPageId(UISwipeView::VERTICAL) == 2) {\r
+ // mainClockView->ClockAnimatorStart();\r
+ // }\r
if ((dialView != nullptr && pageIndex == ScreenModels::GetInstance()->GetCardPage(NEW_DAIL)) &&\r
mainSwipeGroup->GetCurrentPageId(UISwipeView::VERTICAL) == 1) {\r
dialView->PreLoad();\r
if (heartRateView != nullptr) {\r
heartRateView->HeartbeatImageAnimatorStop();\r
}\r
- if (mainClockView != nullptr) {\r
- mainClockView->ClockAnimatorStop();\r
- }\r
+ // if (mainClockView != nullptr) {\r
+ // mainClockView->ClockAnimatorStop();\r
+ // }\r
}\r
\r
bool MainViewSample::IsMainView(void)\r
{\r
\r
- if (mainSwipeGroup->GetCurrentPageId(0) == ScreenModels::GetInstance()->GetCardPage(WATCH_FACE) &&\r
+ if (mainSwipeGroup->GetCurrentPageId(0) == ScreenModels::GetInstance()->GetCardPage(NEW_DAIL) &&\r
mainSwipeGroup->GetCurrentPageId(1) == 1) { // 0: horizontal; 1: vertical\r
return true;\r
} else {\r