Status bar distance left layout optimization

Signed-off-by: lijinfengde123 <lijinfeng26@huawei.com>
This commit is contained in:
lijinfengde123
2022-06-21 09:09:08 +08:00
parent c3666ae8ee
commit 0081584051
2 changed files with 4 additions and 5 deletions
@@ -69,7 +69,6 @@ export default struct StatusBarComponent {
mLayoutWeight: 1,
mAlignItems: HorizontalAlign.Start
})
StatusBarGroup({
mComponents: this.mStatusBarLayout[1],
mLayoutWeight: 0,
@@ -353,4 +352,4 @@ struct StatusBarNotificationIcon {
}
.height('100%')
}
}
}
@@ -115,11 +115,11 @@ struct Index {
touchEvent(event: TouchEvent) {
Trace.start(Trace.CORE_METHOD_START_TOUCHEVENT)
Log.showDebug(TAG, 'touchEvent================' + event.touches)
Log.showDebug(TAG, 'touchEvent' + event.touches)
if (event.type == Constants.TOUCHTYPE_DOWN) { //down
this.startX = event.touches[0].screenX
this.startY = event.touches[0].screenY
Log.showInfo(TAG, `touchStart=======startX: ${this.startX}, startY: ${this.startY}`)
Log.showInfo(TAG, `touchStart, startX: ${this.startX}, startY: ${this.startY}`)
} else if (event.type == Constants.TOUCHTYPE_MOVE) { //move
this.moveX = event.touches[0].screenX - this.startX
this.moveY = event.touches[0].screenY - this.startY
@@ -167,4 +167,4 @@ struct Index {
}
}
}
}
}