com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.OnOpenedListener Java Examples

The following examples show how to use com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.OnOpenedListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MainActivity.java    From buddycloud-android with Apache License 2.0 6 votes vote down vote up
private void customizeMenu() {
	SlidingMenu sm = getSlidingMenu();
	sm.setShadowWidthRes(R.dimen.shadow_width);
	sm.setShadowDrawable(R.drawable.shadow);
	sm.setBehindOffsetRes(R.dimen.slidingmenu_offset);
	sm.setFadeDegree(0.15f);
	sm.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
	sm.setOnOpenedListener(new OnOpenedListener() {
		@Override
		public void onOpened() {
			fragmentChanged();
		}
	});
	
	sm.setOnClosedListener(new OnClosedListener() {
		@Override
		public void onClosed() {
			fragmentChanged();
		}
	});
}
 
Example #2
Source File: SlidingMenuSampleActivity.java    From android-opensource-library-56 with Apache License 2.0 5 votes vote down vote up
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_sliding_menu_sample);

    final SlidingMenu menu = new SlidingMenu(this);
    menu.setMode(SlidingMenu.LEFT);
    menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
    menu.setBehindWidth(getResources().getDimensionPixelSize(
            R.dimen.menu_width));
    menu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT);
    menu.setMenu(R.layout.sliding_menu);

    menu.setOnOpenedListener(new OnOpenedListener() {
        @Override
        public void onOpened() {
            // メニューが開かれた時に呼び出される

        }
    });
    menu.setOnClosedListener(new OnClosedListener() {
        @Override
        public void onClosed() {
            // メニューが閉じた時に呼び出される
        }
    });
    initializeMenuLayout(menu);

    new Handler().postDelayed(new Runnable() {
        @Override
        public void run() {
            menu.showMenu(true);
        }
    }, 4000);

}
 
Example #3
Source File: CustomViewAbove.java    From LiuAGeAndroid with MIT License 4 votes vote down vote up
public void setOnOpenedListener(OnOpenedListener l) {
	mOpenedListener = l;
}
 
Example #4
Source File: CustomViewAbove.java    From BigApp_Discuz_Android with Apache License 2.0 4 votes vote down vote up
public void setOnOpenedListener(OnOpenedListener l) {
	mOpenedListener = l;
}
 
Example #5
Source File: CustomViewAbove.java    From Moring-Alarm with Apache License 2.0 4 votes vote down vote up
public void setOnOpenedListener(OnOpenedListener l) {
	mOpenedListener = l;
}
 
Example #6
Source File: CustomViewAbove.java    From BigApp_WordPress_Android with Apache License 2.0 4 votes vote down vote up
public void setOnOpenedListener(OnOpenedListener l) {
	mOpenedListener = l;
}
 
Example #7
Source File: CustomViewAbove.java    From Study_Android_Demo with Apache License 2.0 4 votes vote down vote up
public void setOnOpenedListener(OnOpenedListener l) {
	mOpenedListener = l;
}
 
Example #8
Source File: CustomViewAbove.java    From zen4android with MIT License 4 votes vote down vote up
public void setOnOpenedListener(OnOpenedListener l) {
	mOpenedListener = l;
}