Closed rsuu closed 8 months ago
Have you enabled click events on the ImageView? They are automatically enabled for Buttons, as that is the expected use case for Buttons.
If you mean SetClickableRequest
, yes
And here is the log
[examples/img.rs:14] &img_view = WrapView {
req: CreateImageViewRequest {
data: Some(
Create {
aid: 0,
parent: -1,
v: Visible,
},
),
keyboard: false,
},
res: Some(
CreateImageViewResponse {
id: 610336268,
code: Ok,
},
),
}
[examples/img.rs:15] &iv = Some(
View {
aid: 0,
id: 610336268,
},
)
[examples/img.rs:16] &clickable = SetClickableResponse {
success: true,
code: Ok,
}
[examples/img.rs:43] "start" = "start"
[examples/img.rs:48] res = InterceptVolumeButtonResponse {
success: true,
code: Ok,
}
[examples/img.rs:52] res = InterceptBackButtonResponse {
success: true,
code: Ok,
}
[examples/img.rs:38] "Back" = "Back"
I meant SendClickEventRequest
. SetClickableRequest
is for enabling click feedback for the user, such as an auditory click.
It works pretty well, Thank you :)
But it works on Button.