alexkorovyansky / android-fb-like-slideout-navigation Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED Facebook-like slide out navigation for Android
License: Apache License 2.0
DEPRECATED Facebook-like slide out navigation for Android
License: Apache License 2.0
--Update-- Library is DEPRECATED and OUTDATED. You should use Navigation Drawer to build great Android Apps * https://developer.android.com/design/patterns/navigation-drawer.html * http://www.youtube.com/watch?v=F5COhlbpIbY&feature=share --Summary-- Easy portable library project for facebook like slideout navigation. You can see how it works in this short demo - http://youtu.be/Cqu7YdNMzeQ. Example of usage is provided in demo project. --Developed by-- Alex Korovyansky - [email protected] --License-- http://www.apache.org/licenses/LICENSE-2.0
I've tried this on a 2.2 device and it works fine, but now I'm running it on a hardware JellyBean device, and this problem only occurs the first time when you resume the app. Instruction to replicate on Jelly Bean
After implementing this into my own application, it seems to have disappeared. If I do run your sample application, I am still able to replicate my original problem.
hii.. i have an error while running app..
while app run it shows in log cat that Dalvik can not find :MenuActivity.
How to solve this issue
It will crash here if you are using a NoActionBar theme on a Honeycomb+ device
getActionBar().hide();
Add a check for null and bob's your uncle! Cheers Glen.
when i open the slider and close it again without selecting any activity it crashes with error that says:
06-18 02:28:37.692: E/AndroidRuntime(23471): FATAL EXCEPTION: main 06-18 02:28:37.692: E/AndroidRuntime(23471): java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@40dc4f78 06-18 02:28:37.692: E/AndroidRuntime(23471): at android.graphics.Canvas.throwIfRecycled(Canvas.java:1038) 06-18 02:28:37.692: E/AndroidRuntime(23471): at android.graphics.Canvas.drawBitmap(Canvas.java:1142) 06-18 02:28:37.692: E/AndroidRuntime(23471): at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:400)
how can i handle this error in my app.
Thanks in advance
Opening Projects in Eclipse and then adding the library project to the sample project does not remove all errors from sample project.
I can't add another TextView in the sample app. I just add this :
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/txtInstr"
android:id="@+id/txtSample"
android:layout_centerVertical="true"
android:textSize="19sp"
android:textColor="#ffffff"
android:text="Demo text here"/>
(the txtInstr is the id I set to the first text view).
I have a force close when I try to slide.
I added a button with selector and if i press the button screen waits 1-2 seconds then menu opens. However if i close it there is no problem.
private void openMenu() {
int width = (int) TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_DIP, 40, getResources()
.getDisplayMetrics());
SlideoutActivity.prepare(this, R.id.inner_content, width);
startActivity(new Intent(this, MenuActivity.class));
overridePendingTransition(0, 0);
}
SlideoutActivity.prepare line takes about 200ms.
Any advise?
If you rotate your phone when the drawer is open, scrolling causes double items in the menu
Steps to reproduce:
In the sample application, have more than 8 items in the left drawer so that it's scrollable
Tested on Nexus One running Android 2.3.6
Using the slider works properly. However it crashes with an OutofMemory exception after repeated usage.
These two lines are at fault
at com.korovyansk.android.slideout.SlideoutHelper.prepare(SlideoutHelper.java:35)
at com.korovyansk.android.slideout.SlideoutActivity.prepare(SlideoutActivity.java:10)
Any way to get around this?
If the IME keyboard is open, then pressing the slideout button, the screenshot gets stretched vertically. Is there a simple fix for this?
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.