开发者

about working with Fragment in Android 2.1 updated

My first question I'd like to ask is that is it so that Fragment is only supported by android 3.0 ? If I am developing Android 2.1 application, can I use Fragment?

My second question is, I am implementing this simple feature, Fragment is a g开发者_如何学运维ood choice, but I am developing Android 2.1 application, if the answer of my first question is negative, what could be the workaround to implement the feature I need?


Yes you can use Fragment with Android 1.6 and later. See this post on the Android blog: Fragments For All


You need to use the Fragments Compatability Library that works with Android 1.6 and above:

http://developer.android.com/sdk/compatibility-library.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜