开发者

BlackBerry - setBanner() vs setTitle()

As with my previous "vs" question at BlackBerry: Overriding paint() vs subpaint() I am wondering if this has to do mostly with convention, style, or if there are some real hard n fast rules.

The way I've seen it so far is that MainScreen.setBanner(Field) and MainScreen.setTitle(Field) have almost exactly the same functionality. I have used the case of being able to call setTitle(String) in a simple UI. However I am working across iOS, droid, BB, and try to make the UIs similar - my title/banner is a 'pretty' custom manager.

The only difference I can see is the little style element that is inserted automatically under a title.

Is this the only reason I would have to choose between using each of these methods?

Perhaps there are stylistic or convention reasons to use one over the other? Perhaps RIM has some intentions with开发者_如何学JAVA these methods that I cannot yet see as a new BB developer? Am I making a mistake by treating these methods as direct substitutes?


If you use both, the banner is laid out above the title. My understanding is that if you are using only one, then they are pretty much interchangeable -- the reason to have both is that you can get some stacking behavior if you want to add more information to the top of the screen.


There is an article: "MainScreen explained" that goes into detail on this and other features of MainScreen.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜