解决了applist列表显示方式不支持支持表观问题 214/1 214/head 216/target/1 217/target/1 218/target/1
authorluozheng <1732036298@qq.com>
Fri, 31 May 2024 15:43:59 +0000 (23:43 +0800)
committerluozheng <1732036298@qq.com>
Fri, 31 May 2024 15:43:59 +0000 (23:43 +0800)
code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistView.cpp

index f8ba1cd..67763dc 100644 (file)
@@ -13,6 +13,7 @@
 namespace OHOS {
 static constexpr int16 NUM_2 = 2;
 static constexpr int16 MAX_SCROLL_DIS = 1000;
+static constexpr int16 ROTATE_FACTOR_2 = 2;
 
 ApplistView::ApplistView()
 {
@@ -98,6 +99,8 @@ void ApplistView::ListStyleOnStart()
     contentList_->SetScrollStateListener(presenter_);
     contentList_->SetMaxScrollDistance(MAX_SCROLL_DIS);
     contentList_->SetYScrollBarVisible(true);
+    contentList_->SetRotateFactor(ROTATE_FACTOR_2); // 增加表冠控制
+    contentList_->RequestFocus();
     container_->Add(contentList_);
 
     dragListener = new AppListOnDragListener();