黑莓 - 自动滚动垂直领域经理 [英] Blackberry - Auto scroll vertical field manager
本文介绍了黑莓 - 自动滚动垂直领域经理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何编程在不改变聚焦一个特定的方向滚动屏幕。对于如。当我们向下滚动到Facebook应用一个频道,它会自动滚动屏幕,以适应在屏幕中央的所有文本。
How can I programatically scroll a screen in a specific direction without changing focus. For eg. as we scroll down to a Feed in FaceBook app, it automatically scrolls the screen to fit all the text in the center of the screen.
能否在这个黑莓Java开发办?
Can this be done in Blackberry Java Development ?
感谢。
阿夫扎尔
Thanks. Afzal
推荐答案
您应该能够做到这一点,如果:
You should be able to do this if:
- 使用<一个href=\"http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/ui/Manager.html#VERTICAL_SCROLL\">VERTICAL_SCROLL风格经理的构造函数(或<一个href=\"http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/ui/Manager.html#HORIZONTAL_SCROLL\">HORIZONTAL_SCROLL)
- 使用<一个href=\"http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/ui/Manager.html#setVerticalScroll%28int%29\">setVerticalScroll(int)经理方法(或<一个href=\"http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/ui/Manager.html#setHorizontalScroll%28int%29\">setHorizontalScroll(int))
- use VERTICAL_SCROLL style in manager constructor (or HORIZONTAL_SCROLL)
- use setVerticalScroll(int) manager method (or setHorizontalScroll(int))
这篇关于黑莓 - 自动滚动垂直领域经理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文