Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在VideoView以横向模式播放来自网络的视频。现在我想在屏幕上垂直移动手指时控制它的音量。当我向下滚动到向上时,音量应该会增加,当我向上滚动手指到向下时,音量应该会减小。我怎样才能获得这种类型的控制?
VideoView
实现 EventListner 接口将解决问题,因为在此您可以处理所有触摸事件。因此沿 y 轴处理触摸事件,然后您可以控制音量。