9ca24f660cd1ef9d31e53de562936dfd39625f4c
[mirrors/FD230.git] /
1 /***
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
6  * @FilePath:
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
10  */
11
12 #ifndef TraingOther_VIEW_H
13 #define TraingOther_VIEW_H
14
15
16 #include "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"
25
26 namespace OHOS {
27 class TraingOtherPresenter;
28 class TraingOtherModel;
29 class TraingOtherView : public View<TraingOtherPresenter>, public UIViewGroup {
30
31 public:
32   TraingOtherView();
33   virtual ~TraingOtherView();
34   static TraingOtherView *GetInstance(void);
35
36   void OnStart() override;
37
38
39
40   UIList *GetList();
41   void AddToTraingOtherList(const TraingOtherItem &item);
42
43 private:
44   void InitView(void);
45   void DeInitView(void);
46   void InitList();
47   void InitScrollView();
48   void SetKeyActListener(void);
49   void PreLoad(void);
50
51 private:
52   UIScrollView *scrollView = nullptr;
53   TraingOtherAdapter *p_TraingOtherListAdapter{nullptr};
54   UIList *TraingOtherList = nullptr;
55
56   bool viewInitStatus{false};
57 };
58 } // namespace OHOS
59 #endif