SimonVT / android-menudrawer

*DEPRECATED* A slide-out menu implementation, which allows users to navigate between views in your app.
http://simonvt.github.com/android-menudrawer/
Apache License 2.0
2.59k stars 1.11k forks source link

Hi, I have a question, how to replace with fragment #239

Closed zhaoyubetter closed 10 years ago

zhaoyubetter commented 10 years ago

            mMenuDrawer = MenuDrawer.attach(this, MenuDrawer.Type.BEHIND,
            Position.RIGHT, MenuDrawer.MENU_DRAG_WINDOW);
    mMenuDrawer.setContentView(R.layout.activity_main);
    mMenuDrawer.setMenuView(R.layout.fragment_menu);
    getSupportFragmentManager().beginTransaction()
            .replace(R.id.fragment_menu, new UserSetFragment()).commit();
    mMenuDrawer.setDropShadowEnabled(false);

R.layout.fragment_menu:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/fragment_menu" android:layout_width="match_parent" android:layout_height="match_parent" />


then run error, the log is: Could not find method android.view.ViewGroup.onRtlPropertiesChanged, referenced from method net.simonvt.menudrawer.MenuDrawer.onRtlPropertiesChanged


I want to replace a fragment to the menu container, what should I do? thanks;

zhaoyubetter commented 10 years ago

I'm very sorry, In my code, I made a wrong, now the code is running OK, thanks