jfeinstein10 / SlidingMenu

An Android library that allows you to easily create applications with slide-in menus. You may use it in your Android apps provided that you cite this project and include the license in your app. Thanks!
Apache License 2.0
11.07k stars 5.04k forks source link

Basic question about setViewAbove #50

Closed ghost closed 12 years ago

ghost commented 12 years ago

Thanks for making slidemenu library. ^^

User Schenario : User click behine view lise --> Above View is changed.

If I see detail about setViewAbove() function. This method accept only 2 type. int res and View v

However I want to use Activity. If I use Intent I can make it. But sliding menu is not exist. Intent intent = new Intent();

Is there any way to change Above View by using Activity?

Thanks for reading.

jfeinstein10 commented 12 years ago

You can't put an Activity into the above view. That doesn't really make sense when you think about what an Activity is. What you CAN do however is change the View that is held in the above view OR manually put a fragment in the above view and switch it.

ghost commented 12 years ago

If I see ExampleActivity2 that use Fragment. However AboveView only has action bar, Behind View does not has it. If I see ExampleActivity, above and behind view has common action bar.

Is that possible at ExampleActivity2 use common action bar like ExampleActivity?

jfeinstein10 commented 12 years ago

No, in order to get the ActionBar to slide, you need to have your activity extend Sliding*Activity. You cannot get this behavior through an xml defined layout using a SlidingMenu.