There is compound widget which consists of VideoView
and Button
. VideoView
play video
, Button
handle events. I'm struggling how to make it resizable according to pinch gesture
.
Unfortunately, it is not possible to add pinch zoom to widgets, since there is no way to add event listeners to widgets. The only way a widget can receive input is assigning on click intents to different components, which start activities. As for videos, look into the VideoView
class, although AFAIK this doesn't work well (if at all) with widgets.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.