com.jeremyfeinstein.slidingmenu.lib.SlidingMenu Java Examples

The following examples show how to use com.jeremyfeinstein.slidingmenu.lib.SlidingMenu. 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: FragmentChangeActivity.java    From Moring-Alarm with Apache License 2.0 6 votes vote down vote up
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	// set the Above View
	if (savedInstanceState != null)
		mContent = getSupportFragmentManager().getFragment(savedInstanceState, "mContent");
	if (mContent == null)
		mContent = new ColorFragment(R.color.red);	
	
	// set the Above View
	setContentView(R.layout.content_frame);
	getSupportFragmentManager()
	.beginTransaction()
	.replace(R.id.content_frame, mContent)
	.commit();
	
	// set the Behind View
	setBehindContentView(R.layout.menu_frame);
	getSupportFragmentManager()
	.beginTransaction()
	.replace(R.id.menu_frame, new ColorMenuFragment())
	.commit();
	
	// customize the SlidingMenu
	getSlidingMenu().setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
}
 
Example #2
Source File: LeftAndRightActivity.java    From Moring-Alarm with Apache License 2.0 6 votes vote down vote up
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	getSlidingMenu().setMode(SlidingMenu.LEFT_RIGHT);
	getSlidingMenu().setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
	
	setContentView(R.layout.content_frame);
	getSupportFragmentManager()
	.beginTransaction()
	.replace(R.id.content_frame, new SampleListFragment())
	.commit();
	
	getSlidingMenu().setSecondaryMenu(R.layout.menu_frame_two);
	getSlidingMenu().setSecondaryShadowDrawable(R.drawable.shadowright);
	getSupportFragmentManager()
	.beginTransaction()
	.replace(R.id.menu_frame_two, new SampleListFragment())
	.commit();
}
 
Example #3
Source File: HomeActivity.java    From Moring-Alarm with Apache License 2.0 6 votes vote down vote up
private void initSlideMenu() {
        setBehindContentView(R.layout.menu_home);
        //获取到slidingMenu对象
        SlidingMenu slidingMenu = getSlidingMenu();
        slidingMenu.setMode(SlidingMenu.RIGHT);
        slidingMenu.setShadowWidthRes(R.dimen.shadow_width);
        slidingMenu.setShadowDrawable(R.drawable.shadow);

        //设置为全屏拉出菜单
        slidingMenu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
        //设置菜单拉出后剩余屏幕宽度
//让侧拉菜单充满屏幕的四分之三
        int menuWidth=getWitdh();
        slidingMenu.setBehindOffset(menuWidth);
        slidingMenu.setOnCloseListener(new SlidingMenu.OnCloseListener() {
            @Override
            public void onClose() {
                Log.d("changecity", "菜单关闭");
                mFragWether.refreshData();
                mFragSlideMenu.stopAlarmMusic();
            }
        });
    }
 
Example #4
Source File: LeftAndRightActivity.java    From Moring-Alarm with Apache License 2.0 6 votes vote down vote up
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	getSlidingMenu().setMode(SlidingMenu.LEFT_RIGHT);
	getSlidingMenu().setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
	
	setContentView(R.layout.content_frame);
	getSupportFragmentManager()
	.beginTransaction()
	.replace(R.id.content_frame, new SampleListFragment())
	.commit();
	
	getSlidingMenu().setSecondaryMenu(R.layout.menu_frame_two);
	getSlidingMenu().setSecondaryShadowDrawable(R.drawable.shadowright);
	getSupportFragmentManager()
	.beginTransaction()
	.replace(R.id.menu_frame_two, new SampleListFragment())
	.commit();
}
 
Example #5
Source File: FragmentChangeActivity.java    From Moring-Alarm with Apache License 2.0 6 votes vote down vote up
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	// set the Above View
	if (savedInstanceState != null)
		mContent = getSupportFragmentManager().getFragment(savedInstanceState, "mContent");
	if (mContent == null)
		mContent = new ColorFragment(R.color.red);	
	
	// set the Above View
	setContentView(R.layout.content_frame);
	getSupportFragmentManager()
	.beginTransaction()
	.replace(R.id.content_frame, mContent)
	.commit();
	
	// set the Behind View
	setBehindContentView(R.layout.menu_frame);
	getSupportFragmentManager()
	.beginTransaction()
	.replace(R.id.menu_frame, new ColorMenuFragment())
	.commit();
	
	// customize the SlidingMenu
	getSlidingMenu().setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
}
 
Example #6
Source File: MainActivity.java    From wallpaper with GNU General Public License v2.0 6 votes vote down vote up
private void highligthButton(int index) {
	switch (index) {
	case 0: {
		latestButton.setChecked(true);
		menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
	}
		break;
	case 1: {
		recommendedButton.setChecked(true);
		menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_MARGIN);
	}
		break;
	case 2: {
		categoryButton.setChecked(true);
		menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_MARGIN);
	}
		break;
	default:
		break;
	}
}
 
Example #7
Source File: MainActivity.java    From wallpaper with GNU General Public License v2.0 6 votes vote down vote up
private void highligthButton(int index) {
	switch (index) {
	case 0: {
		latestButton.setChecked(true);
		menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
	}
		break;
	case 1: {
		recommendedButton.setChecked(true);
		menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_MARGIN);
	}
		break;
	case 2: {
		categoryButton.setChecked(true);
		menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_MARGIN);
	}
		break;
	default:
		break;
	}
}
 
Example #8
Source File: SubCategoryActivity.java    From wallpaper with GNU General Public License v2.0 6 votes vote down vote up
private void highligthButton(int index) {
	switch (index) {
	case 0: {
		latestButton.setChecked(true);
		menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
	}
		break;
	case 1: {
		recommendedButton.setChecked(true);
		menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_MARGIN);
	}
		break;
	case 2: {
		hottestButton.setChecked(true);
		menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_MARGIN);
	}
		break;
	default:
		break;
	}
}
 
Example #9
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 #10
Source File: QQStyleMainActivity.java    From BigApp_Discuz_Android with Apache License 2.0 5 votes vote down vote up
@Override
public void onEmpty() {
    ZogUtils.printError(QQStyleMainActivity.class, "onEmpty onEmpty isFirstTime:" + isFirstTime);
    if (isFirstTime) {
        slidingIndicator.setCurrentItem(1);
        getSlidingMenu().setTouchModeAbove(SlidingMenu.TOUCHMODE_NONE);
        isFirstTime = false;
    }
}
 
Example #11
Source File: MainActivity.java    From yiim_v2 with GNU General Public License v2.0 5 votes vote down vote up
private void setupRightMenu() {
	SlidingMenu sm = getSlidingMenu();
	setBehindContentView(R.layout.right_menu_frame);
	sm.setShadowDrawable(R.drawable.right_menu_shadow);
	mRightMenu = new SideMenuFragment();
	mRightMenu.setMode(SlidingMenu.RIGHT);
	// set the Behind View
	getSupportFragmentManager().beginTransaction()
			.replace(R.id.right_menu_frame, mRightMenu).commit();
}
 
Example #12
Source File: AttachExample.java    From Moring-Alarm with Apache License 2.0 5 votes vote down vote up
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);

	setTitle(R.string.attach);

	// set the Above View
	setContentView(R.layout.content_frame);
	getSupportFragmentManager()
	.beginTransaction()
	.replace(R.id.content_frame, new SampleListFragment())
	.commit();

	// configure the SlidingMenu
	menu = new SlidingMenu(this);
	menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
	menu.setShadowWidthRes(R.dimen.shadow_width);
	menu.setShadowDrawable(R.drawable.shadow);
	menu.setBehindOffsetRes(R.dimen.slidingmenu_offset);
	menu.setFadeDegree(0.35f);
	menu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT);
	menu.setMenu(R.layout.menu_frame);
	getSupportFragmentManager()
	.beginTransaction()
	.replace(R.id.menu_frame, new SampleListFragment())
	.commit();
}
 
Example #13
Source File: CustomAnimation.java    From Moring-Alarm with Apache License 2.0 5 votes vote down vote up
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	// set the Above View
	setContentView(R.layout.content_frame);
	getSupportFragmentManager()
	.beginTransaction()
	.replace(R.id.content_frame, new SampleListFragment())
	.commit();
	
	SlidingMenu sm = getSlidingMenu();
	setSlidingActionBarEnabled(true);
	sm.setBehindScrollScale(0.0f);
	sm.setBehindCanvasTransformer(mTransformer);
}
 
Example #14
Source File: SlidingActivityHelper.java    From BigApp_Discuz_Android with Apache License 2.0 5 votes vote down vote up
/**
 * Further SlidingMenu initialization. Should be called within the activitiy's onPostCreate()
 *
 * @param savedInstanceState the saved instance state (unused)
 */
public void onPostCreate(Bundle savedInstanceState) {
	if (mViewBehind == null || mViewAbove == null) {
		throw new IllegalStateException("Both setBehindContentView must be called " +
				"in onCreate in addition to setContentView.");
	}

	mOnPostCreateCalled = true;

	mSlidingMenu.attachToActivity(mActivity, 
			mEnableSlide ? SlidingMenu.SLIDING_WINDOW : SlidingMenu.SLIDING_CONTENT);
	
	final boolean open;
	final boolean secondary;
	if (savedInstanceState != null) {
		open = savedInstanceState.getBoolean("SlidingActivityHelper.open");
		secondary = savedInstanceState.getBoolean("SlidingActivityHelper.secondary");
	} else {
		open = false;
		secondary = false;
	}
	new Handler().post(new Runnable() {
		public void run() {
			if (open) {
				if (secondary) {
					mSlidingMenu.showSecondaryMenu(false);
				} else {
					mSlidingMenu.showMenu(false);
				}
			} else {
				mSlidingMenu.showContent(false);					
			}
		}
	});
}
 
Example #15
Source File: AttachExample.java    From Moring-Alarm with Apache License 2.0 5 votes vote down vote up
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);

	setTitle(R.string.attach);

	// set the Above View
	setContentView(R.layout.content_frame);
	getSupportFragmentManager()
	.beginTransaction()
	.replace(R.id.content_frame, new SampleListFragment())
	.commit();

	// configure the SlidingMenu
	menu = new SlidingMenu(this);
	menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
	menu.setShadowWidthRes(R.dimen.shadow_width);
	menu.setShadowDrawable(R.drawable.shadow);
	menu.setBehindOffsetRes(R.dimen.slidingmenu_offset);
	menu.setFadeDegree(0.35f);
	menu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT);
	menu.setMenu(R.layout.menu_frame);
	getSupportFragmentManager()
	.beginTransaction()
	.replace(R.id.menu_frame, new SampleListFragment())
	.commit();
}
 
Example #16
Source File: SlidingActivityHelper.java    From Moring-Alarm with Apache License 2.0 5 votes vote down vote up
/**
 * Further SlidingMenu initialization. Should be called within the activitiy's onPostCreate()
 *
 * @param savedInstanceState the saved instance state (unused)
 */
public void onPostCreate(Bundle savedInstanceState) {
	if (mViewBehind == null || mViewAbove == null) {
		throw new IllegalStateException("Both setBehindContentView must be called " +
				"in onCreate in addition to setContentView.");
	}

	mOnPostCreateCalled = true;

	mSlidingMenu.attachToActivity(mActivity, 
			mEnableSlide ? SlidingMenu.SLIDING_WINDOW : SlidingMenu.SLIDING_CONTENT);
	
	final boolean open;
	final boolean secondary;
	if (savedInstanceState != null) {
		open = savedInstanceState.getBoolean("SlidingActivityHelper.open");
		secondary = savedInstanceState.getBoolean("SlidingActivityHelper.secondary");
	} else {
		open = false;
		secondary = false;
	}
	new Handler().post(new Runnable() {
		public void run() {
			if (open) {
				if (secondary) {
					mSlidingMenu.showSecondaryMenu(false);
				} else {
					mSlidingMenu.showMenu(false);
				}
			} else {
				mSlidingMenu.showContent(false);					
			}
		}
	});
}
 
Example #17
Source File: SlidingActivityHelper.java    From Study_Android_Demo with Apache License 2.0 5 votes vote down vote up
/**
 * Further SlidingMenu initialization. Should be called within the activitiy's onPostCreate()
 *
 * @param savedInstanceState the saved instance state (unused)
 */
public void onPostCreate(Bundle savedInstanceState) {
	if (mViewBehind == null || mViewAbove == null) {
		throw new IllegalStateException("Both setBehindContentView must be called " +
				"in onCreate in addition to setContentView.");
	}

	mOnPostCreateCalled = true;

	mSlidingMenu.attachToActivity(mActivity, 
			mEnableSlide ? SlidingMenu.SLIDING_WINDOW : SlidingMenu.SLIDING_CONTENT);
	
	final boolean open;
	final boolean secondary;
	if (savedInstanceState != null) {
		open = savedInstanceState.getBoolean("SlidingActivityHelper.open");
		secondary = savedInstanceState.getBoolean("SlidingActivityHelper.secondary");
	} else {
		open = false;
		secondary = false;
	}
	new Handler().post(new Runnable() {
		public void run() {
			if (open) {
				if (secondary) {
					mSlidingMenu.showSecondaryMenu(false);
				} else {
					mSlidingMenu.showMenu(false);
				}
			} else {
				mSlidingMenu.showContent(false);					
			}
		}
	});
}
 
Example #18
Source File: CustomAnimation.java    From Moring-Alarm with Apache License 2.0 5 votes vote down vote up
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	// set the Above View
	setContentView(R.layout.content_frame);
	getSupportFragmentManager()
	.beginTransaction()
	.replace(R.id.content_frame, new SampleListFragment())
	.commit();
	
	SlidingMenu sm = getSlidingMenu();
	setSlidingActionBarEnabled(true);
	sm.setBehindScrollScale(0.0f);
	sm.setBehindCanvasTransformer(mTransformer);
}
 
Example #19
Source File: QQStyleMainActivity.java    From BigApp_Discuz_Android with Apache License 2.0 5 votes vote down vote up
@Override
        public void onPageSelected(int index) {

            ZogUtils.printError(QQStyleMainActivity.class, "index:::::::" + index);
//            getSlidingMenu().setTouchModeAbove(index == 0 ? SlidingMenu.TOUCHMODE_FULLSCREEN : SlidingMenu.TOUCHMODE_MARGIN);
            getSlidingMenu().setTouchModeAbove(index == 0 ? SlidingMenu.TOUCHMODE_FULLSCREEN : SlidingMenu.TOUCHMODE_MARGIN);
        }
 
Example #20
Source File: MainActivity.java    From yiim_v2 with GNU General Public License v2.0 5 votes vote down vote up
private void setupLeftMenu() {
	SlidingMenu sm = getSlidingMenu();
	setBehindContentView(R.layout.left_menu_frame);
	sm.setShadowDrawable(R.drawable.left_menu_shadow);
	mLeftMenu = new SideMenuFragment();
	mLeftMenu.setMode(SlidingMenu.LEFT);
	// set the Behind View
	getSupportFragmentManager().beginTransaction()
			.replace(R.id.left_menu_frame, mLeftMenu).commit();
}
 
Example #21
Source File: MainActivity.java    From yiim_v2 with GNU General Public License v2.0 5 votes vote down vote up
private void setupSideMenu() {
	SlidingMenu sm = getSlidingMenu();
	setupLeftMenu();

	sm.setSecondaryMenu(R.layout.right_menu_frame);
	sm.setSecondaryShadowDrawable(R.drawable.right_menu_shadow);
	mRightMenu = new SideMenuFragment();
	mRightMenu.setMode(SlidingMenu.RIGHT);
	// set the Behind View
	getSupportFragmentManager().beginTransaction()
			.replace(R.id.right_menu_frame, mRightMenu).commit();
}
 
Example #22
Source File: SlidingActivityHelper.java    From BigApp_WordPress_Android with Apache License 2.0 5 votes vote down vote up
/**
 * Further SlidingMenu initialization. Should be called within the activitiy's onPostCreate()
 *
 * @param savedInstanceState the saved instance state (unused)
 */
public void onPostCreate(Bundle savedInstanceState) {
	if (mViewBehind == null || mViewAbove == null) {
		throw new IllegalStateException("Both setBehindContentView must be called " +
				"in onCreate in addition to setContentView.");
	}

	mOnPostCreateCalled = true;

	mSlidingMenu.attachToActivity(mActivity, 
			mEnableSlide ? SlidingMenu.SLIDING_WINDOW : SlidingMenu.SLIDING_CONTENT);
	
	final boolean open;
	final boolean secondary;
	if (savedInstanceState != null) {
		open = savedInstanceState.getBoolean("SlidingActivityHelper.open");
		secondary = savedInstanceState.getBoolean("SlidingActivityHelper.secondary");
	} else {
		open = false;
		secondary = false;
	}
	new Handler().post(new Runnable() {
		public void run() {
			if (open) {
				if (secondary) {
					mSlidingMenu.showSecondaryMenu(false);
				} else {
					mSlidingMenu.showMenu(false);
				}
			} else {
				mSlidingMenu.showContent(false);					
			}
		}
	});
}
 
Example #23
Source File: SlidingActivityHelper.java    From LiuAGeAndroid with MIT License 5 votes vote down vote up
/**
 * Further SlidingMenu initialization. Should be called within the activitiy's onPostCreate()
 *
 * @param savedInstanceState the saved instance state (unused)
 */
public void onPostCreate(Bundle savedInstanceState) {
    if (mViewBehind == null || mViewAbove == null) {
        throw new IllegalStateException("Both setBehindContentView must be called " +
                "in onCreate in addition to setContentView.");
    }

    mOnPostCreateCalled = true;

    mSlidingMenu.attachToActivity(mActivity, mEnableSlide ? SlidingMenu.SLIDING_WINDOW : SlidingMenu.SLIDING_CONTENT);

    final boolean open;
    final boolean secondary;
    if (savedInstanceState != null) {
        open = savedInstanceState.getBoolean("SlidingActivityHelper.open");
        secondary = savedInstanceState.getBoolean("SlidingActivityHelper.secondary");
    } else {
        open = false;
        secondary = false;
    }
    new Handler().post(new Runnable() {
        public void run() {
            if (open) {
                if (secondary) {
                    mSlidingMenu.showSecondaryMenu(false);
                } else {
                    mSlidingMenu.showMenu(false);
                }
            } else {
                mSlidingMenu.showContent(false);
            }
        }
    });
}
 
Example #24
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 #25
Source File: SlidingActivityHelper.java    From zen4android with MIT License 5 votes vote down vote up
/**
 * Further SlidingMenu initialization. Should be called within the activitiy's onPostCreate()
 *
 * @param savedInstanceState the saved instance state (unused)
 */
public void onPostCreate(Bundle savedInstanceState) {
	if (mViewBehind == null || mViewAbove == null) {
		throw new IllegalStateException("Both setBehindContentView must be called " +
				"in onCreate in addition to setContentView.");
	}

	mOnPostCreateCalled = true;

	mSlidingMenu.attachToActivity(mActivity, 
			mEnableSlide ? SlidingMenu.SLIDING_WINDOW : SlidingMenu.SLIDING_CONTENT);
	
	final boolean open;
	final boolean secondary;
	if (savedInstanceState != null) {
		open = savedInstanceState.getBoolean("SlidingActivityHelper.open");
		secondary = savedInstanceState.getBoolean("SlidingActivityHelper.secondary");
	} else {
		open = false;
		secondary = false;
	}
	new Handler().post(new Runnable() {
		public void run() {
			if (open) {
				if (secondary) {
					mSlidingMenu.showSecondaryMenu(false);
				} else {
					mSlidingMenu.showMenu(false);
				}
			} else {
				mSlidingMenu.showContent(false);					
			}
		}
	});
}
 
Example #26
Source File: MainActivity.java    From LiuAGeAndroid with MIT License 5 votes vote down vote up
/**
 * 准备侧滑菜单
 */
private void prepareMenu() {
    mSlidingMenu = new SlidingMenu(mContext);
    mSlidingMenu.setMode(SlidingMenu.LEFT);
    mSlidingMenu.setTouchModeAbove(SlidingMenu.TOUCHMODE_MARGIN);
    mSlidingMenu.setShadowWidth(0);
    mSlidingMenu.setBehindOffset((int) (SizeUtils.getScreenWidthPx(mContext) * 0.5));
    mSlidingMenu.setFadeDegree(0.0f);
    mSlidingMenu.setBehindScrollScale(0.0f);
    mSlidingMenu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT);

    // 为侧滑菜单设置布局
    View view = View.inflate(mContext, R.layout.slidingmenu_profile, null);
    mSlidingMenu.setMenu(view);

    mPortraitView = view.findViewById(R.id.ll_slidingmenu_profile_portrait_layout);
    mPortraitImageView = (SimpleDraweeView) view.findViewById(R.id.sdv_slidingmenu_profile_portrait_image);
    mNicknameTextView = (TextView) view.findViewById(R.id.tv_slidingmenu_profile_nickname);
    mCollectionView = view.findViewById(R.id.rl_slidingmenu_profile_collection_layout);
    mCommentView = view.findViewById(R.id.rl_slidingmenu_profile_comment_layout);
    mClearCacheView = view.findViewById(R.id.rl_slidingmenu_profile_clear_cache_layout);
    mChangModeView = view.findViewById(R.id.rl_slidingmenu_profile_change_mode_layout);
    mFeedbackView = view.findViewById(R.id.rl_slidingmenu_profile_feekback_layout);
    mCommendView = view.findViewById(R.id.rl_slidingmenu_profile_commend_layout);
    mAboutView = view.findViewById(R.id.rl_slidingmenu_profile_aboutme_layout);

    mPortraitView.setOnClickListener(this);
    mCollectionView.setOnClickListener(this);
    mCommentView.setOnClickListener(this);
    mClearCacheView.setOnClickListener(this);
    mChangModeView.setOnClickListener(this);
    mFeedbackView.setOnClickListener(this);
    mCommendView.setOnClickListener(this);
    mAboutView.setOnClickListener(this);

}
 
Example #27
Source File: SlidingPreferenceActivity.java    From Moring-Alarm with Apache License 2.0 4 votes vote down vote up
public SlidingMenu getSlidingMenu() {
	return mHelper.getSlidingMenu();
}
 
Example #28
Source File: SlidingListActivity.java    From Moring-Alarm with Apache License 2.0 4 votes vote down vote up
public SlidingMenu getSlidingMenu() {
	return mHelper.getSlidingMenu();
}
 
Example #29
Source File: SlidingActivity.java    From BigApp_WordPress_Android with Apache License 2.0 4 votes vote down vote up
public SlidingMenu getSlidingMenu() {
	return mHelper.getSlidingMenu();
}
 
Example #30
Source File: SlidingPreferenceActivity.java    From BigApp_WordPress_Android with Apache License 2.0 4 votes vote down vote up
public SlidingMenu getSlidingMenu() {
	return mHelper.getSlidingMenu();
}