在我的应用程序中集成com.coboltforge.slidemenu库时出错

时间:2015-04-01 10:14:49

标签: android slidingmenu

在Android Studio(1.1.0)项目中集成幻灯片菜单库时,我遇到了这些问题。我正在使用sdk 24.1.2。 错误位于下面给出的代码中的第63行:

super(act, R.id.menu_label, items);

但是我已经将这个库集成到了我的一个eclipse项目中。那里没有出现任何错误。

报告两类问题:

Supplying the wrong type of resource identifier. For example, when calling Resources.getString(int id), you should be passing R.string.something, not R.drawable.something.
Passing the wrong constant to a method which expects one of a specific set of constants. For example, when calling View#setLayoutDirection, the parameter must be android.view.View.LAYOUT_DIRECTION_LTR or android.view.View.LAYOUT_DIRECTION_RTL.

0 个答案:

没有答案