From 0654fd6cdbb06f354b9a0371843af00a9cd2a5f6 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Fri, 31 May 2024 23:43:59 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=A3=E5=86=B3=E4=BA=86applist=E5=88=97?= =?utf8?q?=E8=A1=A8=E6=98=BE=E7=A4=BA=E6=96=B9=E5=BC=8F=E4=B8=8D=E6=94=AF?= =?utf8?q?=E6=8C=81=E6=94=AF=E6=8C=81=E8=A1=A8=E8=A7=82=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/applist/src/ApplistView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistView.cpp b/code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistView.cpp index f8ba1cd22..67763dc55 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/applist/src/ApplistView.cpp @@ -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(); -- 2.17.1