Applist View 添加表冠支持
authorSnickerSun <snickersun@163.com>
Tue, 9 Apr 2024 10:44:05 +0000 (18:44 +0800)
committerSnickerSun <snickersun@163.com>
Tue, 9 Apr 2024 10:44:05 +0000 (18:44 +0800)
code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistView.cpp

index 07b7ef0..08718d3 100644 (file)
@@ -96,6 +96,9 @@ void ApplistView::ListStyleOnStart()
     contentList_->SetScrollStateListener(presenter_);
     contentList_->SetMaxScrollDistance(MAX_SCROLL_DIS);
     contentList_->SetYScrollBarVisible(true);
+    // 增加表冠控制
+    contentList_->SetRotateFactor(2);
+    contentList_->RequestFocus();
     container_->Add(contentList_);
 
     dragListener = new AppListOnDragListener();
@@ -167,6 +170,7 @@ void ApplistView::OnStop()
     }
     View<ApplistPresenter>::OnStop();
     RootView::GetInstance()->ClearOnKeyActListener();
+    RootView::GetInstance()->ClearFocus();
     return;
 }