Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to creat the menu like app of path on ios . left menu and right menu #57

Closed
liufsd opened this issue Jan 7, 2013 · 13 comments
Closed

Comments

@liufsd
Copy link

liufsd commented Jan 7, 2013

Hey Simon/Jake

First of all, thanks for sharing your app menu drawer implementation.

I want to creat the menu like app of path on ios . that have two menu for left and right in the mainactiviy in the theam time.

But in your code,i found : public MenuDrawerManager(Activity activity, int dragMode, int gravity) {
mActivity = activity;
mDragMode = dragMode;

    mMenuDrawer = gravity == MenuDrawer.MENU_POSITION_RIGHT ? new RightDrawer(activity) : new LeftDrawer(activity);

so, that's mean :your library can not do that. ?
Thanks/

@liufsd
Copy link
Author

liufsd commented Jan 7, 2013

Let me know what you think. Thanks!

@SimonVT
Copy link
Owner

SimonVT commented Jan 7, 2013

This is currently not possible, no.

@liufsd
Copy link
Author

liufsd commented Jan 8, 2013

Why not?

@liufsd
Copy link
Author

liufsd commented Jan 8, 2013

You can. see here:
http://android.cyrilmottier.com/?p=701
But how to use your lib..for left and right in the theam time?

@liufsd
Copy link
Author

liufsd commented Jan 8, 2013

@SimonVT
Copy link
Owner

SimonVT commented Jan 8, 2013

Because I haven't added it yet.

@liufsd
Copy link
Author

liufsd commented Jan 8, 2013

how to do that?

@liufsd
Copy link
Author

liufsd commented Jan 8, 2013

so,Today. just for left menu,how can i remain the left menu unchanged when i click menu item to intent new activity ?
I mean, the new activity have the theam left menu .
MainActiviy--leftmenu
SecondAcitity--leftmenu.

it looks facebook left menu or path left menu on ios,

in your code: if i write :
private AdapterView.OnItemClickListener mItemClickListener = new AdapterView.OnItemClickListener() {
@OverRide
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
mActivePosition = position;
mMenuDrawer.setActiveView(view, position);
// mContentTextView.setText(((TextView) view).getText());
mMenuDrawer.closeMenu();

        Intent intent=new Intent(MainActiviy.this,SecondAcitity.class);
        startActivity(intent);

//
}
};

But not ok ...... just a slow...

so what happened ?

Thanks a lot .

@liufsd
Copy link
Author

liufsd commented Jan 8, 2013

@Ikram thanks. But base activity looks back slowly..

@liufsd
Copy link
Author

liufsd commented Jan 8, 2013

@iontech

@ghost
Copy link

ghost commented Jan 8, 2013

I am not into much specifics of this. @SimonVT must have the apt response to this.

@liufsd
Copy link
Author

liufsd commented Jan 8, 2013

@iontech it looks like path on iOS . All the view just looks like have only one left menu.

@liufsd
Copy link
Author

liufsd commented Jan 8, 2013

@iontech hi, what is your email address ? I will send some code ../

@SimonVT SimonVT closed this as completed Mar 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants