/*---------------------------------------------------------------------------- * Copyright (c) TJD Technologies Co., Ltd. 2025. All rights reserved. * * Description: TjdUiWatchFaceAdapter.cpp * * Author: luziquan@ss-tjd.com * * Create: 2025-05-17 *--------------------------------------------------------------------------*/ #include "TjdUiWatchFaceAdapter.h" namespace TJD { WatchFaceCoverflowItemView::WatchFaceCoverflowItemView() { SetTouchable(true); icon_.SetAutoEnable(false); icon_.SetResizeMode(OHOS::UIImageView::ImageResizeMode::FILL); icon_.LayoutCenterOfParent(); Add(&icon_); } WatchFaceCoverflowItemView::~WatchFaceCoverflowItemView() { RemoveAll(); } void WatchFaceCoverflowItemView::Resize(int16_t width, int16_t height) { OHOS::UITransformGroup::Resize(width, height); icon_.Resize(width, height); icon_.LayoutCenterOfParent(); } } // namespace TJD