2 * @Author: Caisking 3449750381@qq.com
3 * @Date: 2024-03-19 17:37:18
4 * @LastEditors: Caisking 3449750381@qq.com
5 * @LastEditTime: 2024-03-27 11:15:59
7 * /sdk/application/wearable/fd230app/nativeui/traing/training_list_other/include/TraingOtherView.h
8 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置
9 * 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
12 #ifndef TraingOther_VIEW_H
13 #define TraingOther_VIEW_H
17 #include "components/ui_label_button_ext.h"
18 #include "components/ui_label_ext.h"
19 #include "components/ui_list.h"
20 #include "components/ui_scroll_view.h"
21 #include "components/ui_view_group.h"
22 #include "traing/training_list_other/include/TraingOtherAdapter.h"
23 #include "traing/training_list_other/include/TraingOtherModel.h"
24 #include "ui_resource_string.h"
27 class TraingOtherPresenter;
28 class TraingOtherModel;
29 class TraingOtherView : public View<TraingOtherPresenter>, public UIViewGroup {
33 virtual ~TraingOtherView();
34 static TraingOtherView *GetInstance(void);
36 void OnStart() override;
41 void AddToTraingOtherList(const TraingOtherItem &item);
45 void DeInitView(void);
47 void InitScrollView();
48 void SetKeyActListener(void);
52 UIScrollView *scrollView = nullptr;
53 TraingOtherAdapter *p_TraingOtherListAdapter{nullptr};
54 UIList *TraingOtherList = nullptr;
56 bool viewInitStatus{false};