This is navigation drawer 2017 tutorial and you’ll learn how to use AlertDialog (Message Box) in Fragment in Android. Assume that you know how to create a navigation drawer from Android Studio 2.3 template. So in this video, I will teach you first how to get a button from a layout and use it in Fragment. Next, how to create a button onClickListener in Fragment. And Finally you learn how to call AlertDialog in a button click in Fragment in Android.