‫After creating the menu.
‫Now let's move to the package and start creating the fragments.
‫So I will create a new.
‫Fragment by creating you.
‫Selecting the fragment.
‫Select Fragment Blank.
‫I will name the first fragment as home.
‫Fragment Source Language Kotlin.
‫Click finish.
‫Here we go.
‫We can remove all of these stuff.
‫These methods.
‫You can see the Oncreate method.
‫You can remove it and I will keep the Oncreate view.
‫You can see that we're inflating.
‫We're going to to display the fragment home.
‫And this is our fragment home.
‫Okay.
‫This is our fragment.
‫I will select phone.
‫Our virtual device, which is the Avd.
‫X Nexus six.
‫Okay, this is the fragment.
‫I will go to the split mode.
‫I will use here the word home fragment.
‫Okay.
‫The size would be 32 SP and.
‫The color here would be.
‫The background color would be.
‫This hex code.
‫Okay.
‫The text color would be white.
‫This is the home fragment.
‫I will create a new fragment, blank fragment, and I will name it as login fragment.
‫Also, I will remove the oncreate.
‫Method and this stuff.
‫And I will go to the login.
‫Go to the split mode, remove.
‫This text and say login fragment.
‫Okay.
‫And the background will be this hex code.
‫The size would be 32 SP and the color would be white.
‫Okay.
‫I will create the third fragment.
‫It's.
‫Named as message
‫fragment.
‫Click finish.
‫You can keep these codes, but.
‫I prefer removing them.
‫So the text will be messages fragment.
‫Here.
‫I will use bank ground.
‫This hex code and the size would be 32 SP and the color would be white.
‫This is good.
‫Now I will create the last fragment for us.
‫Which is.
‫The settings fragment.
‫So settings fragment.
‫Kotlin and click finish.
‫We go to fragment settings.
‫We will change this text to settings fragment.
‫The size would be 32 SP and the color would be.
‫White.
‫And here the background of this fragment would be the green hex code.
‫Okay, this is the settings fragment.
‫So we've created our.
‫Fragments.
‫So I will close them all and now open the main activity.
‫And here we will start making the codes and writing the codes to make the transaction between the fragments.