bindPopup设置popupColor为透明色,仍然有白底
使用自定义的bindPopup,可以更自由地控制箭头位置,期望只显示我自定义的区域,其他地方显示为透明,但是设置popupColor为Color.Transparent,仍可以看到白底。
代码如下:
cardSet() {
Button() {
Image($rawfile('main_page/img/Recommend/setting.png'))
.width(20)
.height(20)
.interpolation(ImageInterpolation.High)
}
.backgroundColor(Color.Transparent)
.onClick(() => {
// this.jumpToAddCard();
this.handlePopup = !this.handlePopup;
})
.bindPopup(this.handlePopup, {
builder: this.guideSetPopupBuilder(),
mask: false,
enableArrow: false,
placement: Placement.Bottom,
popupColor: Color.Transparent
})
}
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
XComponent 怎么设置为透明
3100浏览 • 1回复 待解决
设置XComponent组件为透明
1540浏览 • 1回复 待解决
如何设置卡片背景为透明
4049浏览 • 1回复 待解决
HarmonyOS CustomDialogController自定义一个view,然后背景颜色像设置为透明色,然后Color.Transparent不管用,默认就是白色的,希望可以设置背景颜色为透明
1040浏览 • 1回复 待解决
Tab 设置 barBackgroundColor为透明不生效
987浏览 • 1回复 待解决
HarmonyOS 可以设置页面为透明背景吗?
1326浏览 • 1回复 待解决
HarmonyOS page和WebView无法设置为透明
1388浏览 • 1回复 待解决
HarmonyOS 如何将page设置为透明
1023浏览 • 1回复 待解决
如何将背景颜色设置为透明
3865浏览 • 1回复 待解决
HarmonyOS 气泡提示popup设置popupColor不生效问题
1562浏览 • 1回复 待解决
HarmonyOS TextInput如何设置背景色为透明
758浏览 • 1回复 待解决
HarmonyOS Video组件初始化展示为黑色,能否设置为透明
1424浏览 • 1回复 待解决
HarmonyOS bindPopup设置color无效
2181浏览 • 1回复 待解决
bindPopup样式问题有哪些啊?
1145浏览 • 1回复 待解决
HarmonyOS bindPopup如何设置箭头颜色
1156浏览 • 1回复 待解决
HarmonyOS bindPopup能力,修改自定义builder背景颜色及popupColor颜色,箭头颜色无变化
1113浏览 • 1回复 待解决
HarmonyOS如何绘制渐变的圆环,中间是镂空的透明色?
1218浏览 • 1回复 待解决
HarmonyOS 如何实现ring进度条由白色逐渐变成透明色
941浏览 • 1回复 待解决
HarmonyOS 怎么给bindPopup设置全屏的蒙版
769浏览 • 1回复 待解决
HarmonyOS subwindow窗口不能透明,设置透明不生效
1398浏览 • 1回复 待解决
HarmonyOS 按钮的enabled设置为false后,文案/背景会变成半透明
1784浏览 • 1回复 待解决
如何设置组件透明效果
3104浏览 • 1回复 待解决
如何设置半透明页面
820浏览 • 1回复 待解决
HarmonyOS bindPopup设置autoCancel: false如何透传事件
706浏览 • 1回复 待解决
HarmonyOS 二维码生成,想要生成背景颜色为透明的,设置无效
1171浏览 • 1回复 待解决
通过设置backgroundBlurStyle:BlurStyle.NONE实现透明
通过设置shadow.radius=0将整体边框都清除
参考代码