开发者

Seekbar OnSeekBarChangeListener not called for changes with DPAD left and right?

I have SeekBar widget, trying to control it by dpad keys - change position by left and right.

I can focus it, pressing dpad left/right changes position (correctly, as set by setKeyProgressIncrement), however, there's no way from my code to know that such change occured. OnSeekBarChangeListener is not called in this case.

Looking at AbsSeekBar.java, I see code in onKeyDown which moves progress by keys, however it doesn't call any 开发者_运维百科callback. It only calls its internal onKeyChange, which can't be trapped.

Anyone has way to detect seekbar movement by cursor keys?

I want make my app nice also on non-touch-screen devices.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜