/* * Copyright (c) CompanyNameMagicTag 2021-2021. All rights reserved. * Description: CallingView.h * Author: * Create: 2021-10-12 */ #ifndef CALLING_VIEW_H #define CALLING_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" #include "UiConfig.h" #include "ChangeSliceListener.h" namespace OHOS { class CallingView { public: CallingView(); ~CallingView(); UIViewGroup *CreateUIViewGroup(); UIImageView *GetImageMicrophone(); static CallingView *GetInstance(); UILabel *GetCallingDisplayLabel(); UILabel *GetCallingDurationLabel(); private: bool InitAddOnclickevent(void); bool InitImageViewDisplay(void); bool InitUILabelDisplay(void); UIImageView *imageMicrophone{nullptr}; UIViewGroup *group{nullptr}; UIView::OnClickListener* clickLeftListener{nullptr}; UIImageView *imageHandUp{nullptr}; UIImageView *imageHorns{nullptr}; UILabel *callerDisplay{nullptr}; UILabel *currentTimes{nullptr}; UILabel *callDuration{nullptr}; }; } #endif