相关疑难解决方法(0)

导入HoloEverywhere时出错

首先,我是Android新手.我正在做一个应用程序,我正在实现一个名为HoloEverywhere的库.这个库在themes.xml中使用了ActionBar Sherlock库.我已导入到我的工作区ActionBar Sherlock,我已将其添加到HoloEverywhere.接下来,我已将HoloEverywhere添加到我的项目中,但是当我尝试使用它时,我有一个错误(我尝试使用按钮):

The following classes could not be instantiated:
- com.WazaBe.HoloEverywhere.ButtonHolo (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse.
Run Code Online (Sandbox Code Playgroud)

我把类的路径放在我的布局中,如下所示:

<com.WazaBe.HoloEverywhere.ButtonHolo
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/text" />
Run Code Online (Sandbox Code Playgroud)

我如何解决这个问题并在我的项目中使用这个库?谢谢:) PS.对不起我的英语,我知道这不是很好.

android themes actionbarsherlock android-holo-everywhere

14
推荐指数
2
解决办法
1万
查看次数