bk138 / libslidemenu Goto Github PK
View Code? Open in Web Editor NEWA sliding menu for Android, as found in the Google+ or Facebook apps.
License: Apache License 2.0
A sliding menu for Android, as found in the Google+ or Facebook apps.
License: Apache License 2.0
how can i use this to an activity without title bar?
Hello,
Is there a way to set slide menu width?
Getting a ClassCastException on Android 4.3 Devices:
07-25 12:13:31.898: E/AndroidRuntime(31613): FATAL EXCEPTION: main
07-25 12:13:31.898: E/AndroidRuntime(31613): java.lang.ClassCastException: com.android.internal.widget.ActionBarOverlayLayout cannot be cast to android.widget.FrameLayout
07-25 12:13:31.898: E/AndroidRuntime(31613): at com.coboltforge.slidemenu.SlideMenu.show(SlideMenu.java:317)
07-25 12:13:31.898: E/AndroidRuntime(31613): at com.coboltforge.slidemenu.SlideMenu.show(SlideMenu.java:260)
07-25 12:13:31.898: E/AndroidRuntime(31613): at com.securenetsystems.g5.MainActivity$5.onClick(MainActivity.java:234)
07-25 12:13:31.898: E/AndroidRuntime(31613): at android.view.View.performClick(View.java:4240)
07-25 12:13:31.898: E/AndroidRuntime(31613): at android.view.View$PerformClick.run(View.java:17721)
07-25 12:13:31.898: E/AndroidRuntime(31613): at android.os.Handler.handleCallback(Handler.java:730)
07-25 12:13:31.898: E/AndroidRuntime(31613): at android.os.Handler.dispatchMessage(Handler.java:92)
07-25 12:13:31.898: E/AndroidRuntime(31613): at android.os.Looper.loop(Looper.java:137)
07-25 12:13:31.898: E/AndroidRuntime(31613): at android.app.ActivityThread.main(ActivityThread.java:5103)
07-25 12:13:31.898: E/AndroidRuntime(31613): at java.lang.reflect.Method.invokeNative(Native Method)
07-25 12:13:31.898: E/AndroidRuntime(31613): at java.lang.reflect.Method.invoke(Method.java:525)
07-25 12:13:31.898: E/AndroidRuntime(31613): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
07-25 12:13:31.898: E/AndroidRuntime(31613): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-25 12:13:31.898: E/AndroidRuntime(31613): at dalvik.system.NativeStart.main(Native Method)
I think it's the first case, fragments, the correct mode was any MenuItem call a update of the master fragment.
If the correct mode was with activity, i think it's necessary have a master activity and all the other activities extends master activity.
How is the correct mode?
How i've to call the other fragment/activity by the onSlideMenuItemClick? Is it a intent?
This is a great library so far, but I miss a little feature.
If you look at the youtube or google+ app, it is possible to grab the main view and slide it back over the menu to hide it. Is it possible to implement this?
It'd be great to be able to choose to implement this drawer from the left and/or the right.
Hello,
using your library but it does not slide back.
i have to click outside the menu or click the actionbar button.
how can i slide it back?
Thanks
Hi I am using your library and I have encountered a weird problem that occurs only in xperia devices , when I hide the menu the main activity doesn't animate back leaving a black screen on the place the menu use to be.
Since slidemenu.isShown() method returns "true" even though menu was not shown. The below code(What I thought to be valid) ends up in exception since menu object is null.
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_MENU) {
if(slideMenu.isShown())
slideMenu.hide();
}
}
I refer similar code in stackoverflow, and it worked very well on my device(HTC raidar 4G, Nexus 7, Galaxy)
But If I use other phone(other htc phone, motorola atrix) it crashed. I track code and find that devices have different view.
http://stackoverflow.com/questions/11650847/decorview-child-framelayout
<- This issue has similar problem with me.
That thread said that remove NoTitleBar attribute, but it doesn't work to me.
So I asked here : http://stackoverflow.com/questions/12109512/decorview-child-framelayout-is-different-at-devices
and one said that do not use android.R.id.content since it is different with devices. Have you any idea about this? Thanks,
This is a helpful library but is it possible to add a layout in place of list
Can you give a sample of that link
It is crashing on Samsung S3 android build 4.1
ClassCastException: LinearLayout casting to FrameLaout.
I found solution ๐
Converted all FrameLayout.LayoutParams to LayoutParams
parent = (ViewGroup) act.getWindow().getDecorView();
I want to show the sliding screen first when the activity is invoked.That is when the user enter into the app home he need to see the sliding menu first(contains the list ) .For that what i need to do in my activity class? I have tried
slidemenu = new SlideMenu(this, R.menu.slide, this, 333); slidemenu.show(); in on create but it doesnt works well because the transition animation is shown at the start?Please help me with a solution
Thank you for making this menu available - it's awesome. Just wanted to add that it appears it doesn't work with sdks 14 and 15. Menu icon in upper left corner is not clickable (and no menu appears) when compiling with target sdk 14 and higher.
I'm using LibSlideMenu on my Samsung Galaxy Note with Ice Cream Sandwich and the system bar is covering the top part of the SlideMenu.
A quick fix would be to check if the system bar is visible and scale down the SlideMenu of the size of the SystemBar.
I was going to make a few additions to this project in order to be able to customize views and introduce non-clickable headers, when I found that Sebastian Roth (ened) had already made those customizations. I really quite like the changes he made apart from one minor edit which means that the menu will slide open a long way on tablet devices, which I've subsequently undone and posted here:
https://github.com/danieltwagner/LibSlideMenu.
The changes look much worse than they are in real life because indentation was changed. If you do a diff with whitespace ignored then you'll see that they are actually minimally invasive.
I love this library, but have noticed if the orientation changes whilst the menu is open the list is half hidden.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.