I implemented in my application the simple-side-drawer by adamrocker following the instructions that are on github:
https://github.com/adamrocker/simple-side-drawer
Code in my app:
//SLIDE
private SimpleSideDrawer mNav;
mNav = new SimpleSideDrawer(this);
mNav.setLeftBehindContentView(R.layout.activity_behind_left_simple);
findViewById(R.id.slidemenu).setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
mNav.toggleLeftDrawer();
}
});
this is xml of "activity_behind_left_simple"
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/leftBehindMenuScroll"
android:background="@drawable/lavagna" >
<LinearLayout
style="@style/behindMenuScrollContent"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:paddingTop="25dp" >
<TextView
android:id="@+id/ciao"
style="@style/behindMenuItemTitle"
android:gravity="center"
android:textStyle="italic"
android:layout_width="fill_parent"
android:text="General"
android:textColor="#000000" />
<Button
android:id="@+id/matrix"
android:background="@drawable/but_ok"
android:textColor="#ffffff"
style="@style/behindMenuItemLabel"
android:layout_width="203dp"
android:layout_height="40dp"
android:layout_marginTop="10dp"
android:gravity="center"
android:text="Rate"/>
the simple side drawer works fine, but I would like to add a scrolling effect. How can I do this?
If you want a scrolling effect, consider the SlidingMenu open source project. You can demo it on the Play Store if you want, but I've used it in the past with good success.
As to using the built in Android NavigationDrawer, I believe it was added to the Android Support Library so you can include that for backward compatibility if you want to go that route.