Giter Site home page Giter Site logo

android-fb-like-slideout-navigation's Introduction

--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

android-fb-like-slideout-navigation's People

Contributors

alexkorovyansky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-fb-like-slideout-navigation's Issues

rotation issue?

When I opne menu activity and I rotation screen
SampleActivity's view will be large .....
How can I slove this issue..
Thanks
Screenshot_2013-01-04-16-40-22
Screenshot_2013-01-04-16-40-30

JellyBean problem?

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

  1. Hit the arrow to show list view
  2. Click any item in list view
  3. Original layout slides back, and then a black screen appears for about 0.4 seconds. Very noticeable, but it won't happen again until you exit the app and run it again.

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.

opening and closing the slider without selecting any activity inside it cause crash in my app

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

Sample does not run

Opening Projects in Eclipse and then adding the library project to the sample project does not remove all errors from sample project.

Error when add TextView in the sample app

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.

Menu opens slow

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?

rotation messes up scrolling left bar

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

  1. Open the drawer
  2. Rotate the phone
  3. Scroll up and down

You'll see this:
Items appear double

Tested on Nexus One running Android 2.3.6

Out Of Memory error on repeated usage of the slider

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.