From: Caisking <3449750381@qq.com> Date: Mon, 15 Jul 2024 03:02:00 +0000 (+0800) Subject: 设置卡片列表为循环显示 X-Git-Tag: release_V1.2.70_20241020_135402~807^2~15 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=f6fbbd7fa4931ca148ab648778275974345588eb;p=mirrors%2FFD230.git 设置卡片列表为循环显示 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/add_card/src/AddCardView.cpp b/code/sdk/application/wearable/fd230app/nativeui/add_card/src/AddCardView.cpp index b062fa2af..358459910 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/add_card/src/AddCardView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/add_card/src/AddCardView.cpp @@ -107,6 +107,7 @@ namespace OHOS contentList_.SetScrollStateListener(presenter_); contentList_.SetOnDragListener(presenter_); contentList_.SetMaxScrollDistance(1000); + contentList_.SetLoopState(true); contentList_.SetAdapter(addCardAdapter_); contentList_.SetVisible(true); container_->Add(&contentList_);