Skip to content
Search

SlidingMenu

lastmod 2018-08-17created 2014-05-156 edits

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!

SlidingMenu is an Open Source Android library that allows developers to easily create applications with sliding menus like those made popular in the Google+, YouTube, and Facebook apps. Feel free to use it all you want in your Android apps provided that you cite this project and include the license in your app

SlidingMenu is implemented by extending RelativeLayout.

How to use

A simple way to use SlidingMenu is shown below.

public class MainActivity extends SlidingActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        setBehindContentView(R.layout.activity_main_menu);
        getSlidingMenu().setBehindOffset(100);
    }
}

Then add android:clickable="true" to the layout XML (res/layout/activity_main.xml in the example above).

See also

Favorite site