开发者

how to auto adjust design for all simulators

I am developing an application with the 9630 BlackBerry simulator, but when I te开发者_JAVA百科st with the 9550 simulator, my app draws off-screen. How do I adjust for all simulators to avoid this?


Using HorisontalFieldManager and VerticalFieldManager (aspecially with USE_ALL_WIDTH, USE_ALL_HEIGHT style flags) makes life easier.

Also remember about using scroll inside field managers (ex. for vertical lists)

Talking about image resources, like backgrounds etc, there are several ways you can go:

  • separated image resources for each screen size + ant file to copy/delete during device-specific build
  • separated image resources for each screen size + runtime screen size check and resource selection by filename
  • runtime image resources generation (like 9 patch in Android)
  • try to avoid use of image resources, and use gradient or solid backgrounds

See also
Blackberry User Interface Design - Customizable UI?
developing application for diffrent screen size
Supporting multiple screens - Blackberry
UI compatibility across all BlackBerry devices

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜