王士厅

fix: 横版视频详情页,全屏按钮位置和样式与安卓不一致

... ... @@ -452,24 +452,27 @@ export struct DetailPlayShortVideoPage {
playerFullscreenBuilder() {
Row() {
Image($r('app.media.ic_switch_orientation'))
.width(16)
.width(24)
.aspectRatio(1)
.objectFit(ImageFit.Contain)
.margin({ left: 8, right: 4 })
Text("全屏观看")
.fontColor(Color.White)
.fontWeight(400)
.fontSize(12)
.layoutWeight(1)
// Text("全屏观看")
// .fontColor(Color.White)
// .fontWeight(400)
// .fontSize(12)
// .layoutWeight(1)
}
.width(84)
.height(28)
.backgroundColor('#0DFFFFFF')
.border({ width: 1, color: '#4DFFFFFF', radius: 4 })
// .width(84)
// .height(28)
// .backgroundColor('#0DFFFFFF')
// .border({ width: 1, color: '#4DFFFFFF', radius: 4 })
.alignItems(VerticalAlign.Center)
.justifyContent(FlexAlign.Center)
.align(Alignment.Bottom)
.margin({ top: 280 })
// .margin({ top: 280 })
.position({
y: '66.5%'
})
.onClick(() => {
// 全屏方案待定
// this.displayDirection = DisplayDirection.VERTICAL
... ...