开发者

PreferenceActivity within TabWidget

Within my program I have a PreferenceActivity as one of my tabs. I do the following.

public class settings extends PreferenceActivity{

// On Create    
    @Override
    prote开发者_运维知识库cted void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.settings); 

This works really well and is slick to help my users find all of their settings. My problem is I'm starting to get too many settings so I wanted to group them within sub PreferenceScreens. When I add one of these PreferenceScreens to my xml and navigate my program into it I loss my tabs. You can back out and everything works fine, but it really messes with the programs whole theme and planned updates. Another option that I'm not sure is possible is a dynamically expandable PreferenceCategory. I see this done in Dolphin Browser but their settings are also not stock.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜