Fragments in Froyo

假装没事ソ 提交于 2019-12-11 19:57:05

问题


Can i use Fragments in 2.2 version of the Android (Froyo) using the compatibility package ?

I want to use two nested Tabs which on clicking should display related content in the Fragments.


回答1:


Have a look at ActionbarSherlock. Short description from their website:

ActionBarSherlock is an extension of the compatibility library designed to facilitate the use of the action bar design pattern across all versions of Android with a single API.

With one API you can use all that 3.0 stuff on pre-3.0 devices. (It looks the same and behaves the same)




回答2:


Yes you can. Tabs are not supported in the ActionBar by the compatibility library.



来源:https://stackoverflow.com/questions/8600483/fragments-in-froyo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!