* @Author: luozheng 1732036298@qq.com
* @Date: 2024-04-10 11:58:21
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-08-10 10:59:45
+ * @LastEditTime: 2024-08-26 17:39:08
* @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/dnotdisturb/src/DnotDisturbView.cpp
*/
#include "dnotdisturb/include/DnotDisturbView.h"
namespace OHOS
{
- static constexpr const char *DROPDOWN_DNOTDISTURB_IMAGE = "/user/res/dropdown/DROPDOWN_DNOTDISTURB.bin";
static DnotDisturbView *g_pDnotDisturbView{nullptr};
DnotDisturbView::DnotDisturbView()
DnotDisturbImage->SetStyle(STYLE_BACKGROUND_OPA, 0xff);
DnotDisturbImage->SetStyle(STYLE_BORDER_RADIUS, 100);
DnotDisturbImage->SetAutoEnable(false);
- DnotDisturbImage->SetResizeMode(UIImageView::CENTER);
- DnotDisturbImage->SetSrc(DROPDOWN_DNOTDISTURB_IMAGE);
+ DnotDisturbImage->SetResizeMode(UIImageView::FILL);
+ DnotDisturbImage->SetSrc(PNG_APPLIST_DISTURB_IMAGE);
/* -------------------------------------------------------------------------- */
AttentionLabel = new UILabelExt();
if (AttentionLabel == nullptr)