void ItemListAdd(const ScheduleListItemInfo &item);\r
void ItemListClear(void);\r
void ItemListContentUpdate(void);\r
+ void ItemListScrollByUpdate(bool isUpScroll = false);\r
\r
void ContentScreenItemIndexSet(uint8_t index);\r
uint8_t ContentScreenItemIndexGet(void);\r
* @Author: luozheng 1732036298@qq.com\r
* @Date: 2024-06-20 15:11:17\r
* @LastEditors: luozheng 1732036298@qq.com\r
- * @LastEditTime: 2024-11-30 17:38:58\r
+ * @LastEditTime: 2024-12-13 16:28:48\r
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/SchedulePresenter.cpp\r
*/\r
#include "AppViewIDs.h"\r
ScheduleModel_->ScheduleOriginalDataSetByUI(view_->ContentScreenItemIndexGet() / 2);\r
view_->ItemListContentUpdate();\r
view_->DisplayDataOrNoScreen();\r
+ view_->ItemListScrollByUpdate();\r
return true;\r
}\r
\r
}\r
}\r
\r
+ /// @brief 列表滚动更新\r
+ /// @param isUpScroll true 向上滚动,反之向下滚动\r
+ void ScheduleView::ItemListScrollByUpdate(bool isUpScroll)\r
+ {\r
+ if(ScheduleList_)\r
+ {\r
+ ScheduleList_->ScrollBy(isUpScroll ? -240 : 240);\r
+ }\r
+ }\r
+\r
void ScheduleView::ResetScheduleList(void)\r
{\r
if(ScheduleListAdapter_ == nullptr || ScheduleList_== nullptr)\r