Skip to content

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!

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는 RelativeLayout을 상속받아 구현되어있다.

How to use

간단히 SlidingMenu를 사용하는 방법은 아래와 같다.

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);
    }
}

이후, Layout XML(위 예제의 경우 res/layout/activity_main.xml)에 android:clickable="true"를 추가하면 된다.

See also

Favorite site