SlidingMenu jfeinstein - 无法实例化活动

时间:2013-05-31 14:53:04

标签: android

我在此设置了我的MainActivity的内容视图:

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.slidingmenu);
    setUpActionBar();
} 

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
>

<com.jeremyfeinstein.slidingmenu.lib.SlidingMenu
xmlns:sliding="http://schemas.android.com/apk/res-auto"
android:id="@+id/slidingmenulayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
sliding:viewAbove="@layout/activity_main"
sliding:viewBehind="@layout/activity_left"
sliding:touchModeAbove="fullscreen"
sliding:fadeEnabled="true"
sliding:selectorEnabled="false"
/>

</LinearLayout>

activity_main和activity_left是普通视图,但是我收到错误:

05-31 16:46:33.407: E/AndroidRuntime(23698): java.lang.RuntimeException: Unable to start activity ComponentInfo{de.multamedio.teaserapp/de.multamedio.teaserapp.MainActivity}: android.view.InflateException: Binary XML file line #6: Error inflating class com.jeremyfeinstein.slidingmenu.lib.SlidingMenu

我真的不知道我能做什么。任何帮助非常感谢

0 个答案:

没有答案