福尔摩斯动作条风格缺失福尔摩斯、缺失、风格、动作

由网友(〞指间ゝ繁华初逝的格调シ)分享简介:我想实现大侦探动作条,而是因为它根本不存在,我无法设置正确的主题清单。本教程说要放机器人:主题=@风格/ Theme.Sherlock,但我没有这样的选择,为什么呢?我正确添加福尔摩斯库我的项目。I'm trying to implement sherlock actionbar but i can't set th...

我想实现大侦探动作条,而是因为它根本不存在,我无法设置正确的主题清单。本教程说要放机器人:主题=@风格/ Theme.Sherlock,但我没有这样的选择,为什么呢?我正确添加福尔摩斯库我的项目。

I'm trying to implement sherlock actionbar but i can't set the right theme in the manifest because it simply doesn't exists. the tutorial says to put android:theme="@style/Theme.Sherlock" but i don't have this choice, why? i correctly added sherlock library to my project.

推荐答案

http://actionbarsherlock.com/usage。 HTML

按照link

:删除您创建的JAR。添加ActionBarSherlock到您的应用程序作为一个Android库项目。虽然 ActionBarSherlock文档(见包括在项目)仅引用的Eclipse和Maven对如何做到这一点

: Delete the JAR that you created. Add ActionBarSherlock to your app as an Android library project. While the ActionBarSherlock documentation (see "Including In Your Project") only cites Eclipse and Maven for how to do this,

根据链接

在做Java的code

do in java code

@Override
public void onCreate(Bundle savedInstanceState) {
   if (Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH){
        this.setTheme(com.actionbarsherlock.R.style.Theme_Sherlock);
   }
   super.onCreate(savedInstanceState);
   ... // MORE CODE ....
}
阅读全文

相关推荐

最新文章