Hello I need your help #67
Replies: 6 comments 6 replies
-
https://docs.zepp.com/docs/reference/device-app-api/newAPI/ui/setProperty/#propertyid |
Beta Was this translation helpful? Give feedback.
-
I guess you didn't get it I want for Amazfit band 7 and it will be 1.0 |
Beta Was this translation helpful? Give feedback.
-
You did not mention anything about AB7 in you question, so your answer is: you cannot. |
Beta Was this translation helpful? Give feedback.
-
You cannot just say no every thing is possible accept by defeating death |
Beta Was this translation helpful? Give feedback.
-
Go ahead and hack your way over system limitations. |
Beta Was this translation helpful? Give feedback.
-
Hello, you can refer to this code. Page({
data: {
visible: false
},
build() {
const visibleButton = hmUI.createWidget(hmUI.widget.BUTTON, {
x: (480 - 400) / 2,
y: 300,
w: 400,
h: 100,
radius: 12,
normal_color: 0xfc6950,
press_color: 0xfeb4a8,
text: 'Visible',
click_func: (button_widget) => {
console.log('toggle')
},
})
visibleButton.setProperty(hmUI.prop.VISIBLE, this.data.visible)
const toggleButton = hmUI.createWidget(hmUI.widget.BUTTON, {
x: (480 - 400) / 2,
y: 120,
w: 400,
h: 100,
radius: 12,
normal_color: 0xfc6950,
press_color: 0xfeb4a8,
text: 'Toggle',
click_func: (button_widget) => {
this.data.visible = !this.data.visible
visibleButton.setProperty(hmUI.prop.VISIBLE, this.data.visible)
}
})
}
}) |
Beta Was this translation helpful? Give feedback.
-
Hello basically I am trying to make an app if we click a button it wont go to page it will show another button without switching page please give me the code
Beta Was this translation helpful? Give feedback.
All reactions