/* * Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved. * Description: CallerDisplayView.h * Author: * Create: 2021-10-12 */ #ifndef CALLER_DISPLAY_VIEW_H #define CALLER_DISPLAY_VIEW_H #include "View.h" #include "components/ui_label.h" #include "components/ui_image_animator.h" #include "components/ui_view_group.h" #include "ohos_types.h" namespace OHOS { class CallerDisplayView { public: CallerDisplayView(); ~CallerDisplayView(); UIViewGroup *CreateUIViewGroup(); static CallerDisplayView *GetInstance(); private: bool InitAddOnclickevent(void); bool InitImageViewDisplay(void); bool InitUILabelDisplay(void); UIViewGroup *group{nullptr}; UIView::OnClickListener* clickLeftListener{nullptr}; UIImageView *imageAgreeing{nullptr}; UIImageView *imageDissgree{nullptr}; UILabel *callerDisplay{nullptr}; UILabel *currentTimes{nullptr}; }; } #endif