开发者

Design pattern for fragments in android

I am reading a book and it says like this "Right now, fragments are very new, so there are few well-established patterns to follow"

But I do not know where to read more about the design patterns for fragments at all.

I want to make an application with a lot of different screens and the app should be available for a tablet and for a phone, so the fragments will help me a lot here. But as I said this is big one and I am about to start designing it. So I really need good design. And before I start I want to see some design patterns guidelines for fragments in android.

I there something like best practices or something ? I read a lot about fragments their usage and all those stuff, but I didn't find some well established design pattern for making app for phones and tablets.

I reall开发者_运维技巧y need advanced chapter about this. Thanks


You've probably read this but just in case, the Android Reference Document on Fragments quite nicely explains how to separate your UI and the Example right at the bottom of the page shows a reasonable way of how a UI using fragments can include more or less fragments given a change in orientation.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜