PullToRefreshStyle has two text options: "Pull to refresh" and "Release to refresh". It tries to animate between them, using an opacity fade in/out. But unfortunately, the text itself changes immediately before the fade out. So it looks very unsightly.
Maybe some code like the following, that I've used as a workaround in unity8. Note the PropertyAction between the two NumberAnimations.
PullToRefreshStyle has two text options: "Pull to refresh" and "Release to refresh". It tries to animate between them, using an opacity fade in/out. But unfortunately, the text itself changes immediately before the fade out. So it looks very unsightly.
Maybe some code like the following, that I've used as a workaround in unity8. Note the PropertyAction between the two NumberAnimations.
states: [
name: "pulling"
when: styledItem. target. dragging && !releaseToRefresh
PropertyChang es { target: pullLabel; text: i18n.tr("Pull to refresh…") }
name: "releasable"
when: styledItem. target. dragging && releaseToRefresh
PropertyChang es { target: pullLabel; text: i18n.tr("Release to refresh…") }
transitions: Transition {
Sequential Animation {
UbuntuNumberA nimation {
target: pullLabel
property: "opacity"
to: 0.0
PropertyActio n {
target: pullLabel
property: "text"
UbuntuNumberA nimation {
target: pullLabel
property: "opacity"
to: 1.0
State {
},
State {
}
]
}
}
}
}
}