[Android] SnackBar 샘플 코드

By | 1월 18, 2021

말보다는 코딩!

DrawerLayout layout = (DrawerLayout)activity.findViewById(R.id.drawer_layout);
Snackbar.make(layout, message, Snackbar.LENGTH_INDEFINITE)
		.setAction("설정", new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				// do something
			}
		}).show();

 

 

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments