‫Instructor: Hi, within this lecture we are going
‫to bring in XML files
‫and we are also going to bring in the menu file.
‫Okay, remember the menu?
‫So when I hit the three dot button
‫on my right upper corner of my app, it let me add a Tweet.
‫So this is the menu that I'm talking about.
‫So in order to do that
‫we have to bring that file in as well.
‫So make sure you go to resources and menu folder.
‫So as you can see, I have a menu folder
‫and I have an XML over here called Options Menu.
‫So we need to bring in this as well.
‫So make sure you go to res file over here.
‫Okay, and say, right click new, directory.
‫So when you open this directory
‫you have to write menu exactly like this, M E N U
‫and hit okay, so don't use any other characters over here.
‫You have to code this M E N U.
‫So when you do that, it'll appear on the left hand side
‫and you can create a new menu resource file.
‫As you can see now it displays menu resource file
‫because menu folder is actually recognized
‫by the Android studio.
‫It's only contains menu XML files.
‫So if you create a new one, you can just come
‫over here to options menu dot xml and start copying
‫and pasting content from GitHub to your project.
‫Okay?
‫And if you wonder why we are doing this
‫so maybe you think that
‫why don't you give us an APK and we can work on that?
‫Yeah, in order to do that
‫I have to have a running fire base on my server.
‫And if one of you hacks it
‫then the others won't be able to read the data.
‫If one of you deletes every data in that fire base database
‫the others won't be able to practice.
‫So what I'm trying to do is to let you create
‫your own fire based database
‫so you can do whatever test you may want to.
‫Of course, in real life example, in a real life scenario
‫you won't even have to know the source code.
‫You can just start working on the APK.
‫But this time we are building our own APK so
‫that we can hack our own application.
‫Okay? So that's why we are doing all of this stuff.
‫So let's start with the options menu.
‫Just click on that
‫and you will see the options menu XML.
‫You can just copy everything from here like that, okay?
‫And make sure you get everything inside this box.
‫And then I'm gonna come over to this text tab
‫and I'm going to delete everything in the options menu.
‫Make sure you're in the options menu.
‫Make sure you open the text tab
‫and delete everything and paste what you have copied.
‫Once you do that, you will see add a Tweet
‫and sign out buttons appear on the right hand site.
‫So now let's move on with the others.
‫Let's come over here to resources
‫and go to layout and start with the recycler row, okay?
‫As you can see,
‫I see all the contents regarding the recycler row.
‫So I'm gonna copy all of this like that.
‫Everything, okay?
‫Make sure you get everything and just copy it
‫and come back to your recycler row and open text.
‫Then just delete those
‫and hit command V or control V to paste it.
‫So let me come over here.
‫And as you can see in the design section, we don't see much.
‫You can just say show layout decorations as well.
‫It won't do much in recycler view row.
‫Okay? But maybe you may want to open this title bar.
‫So here you go.
‫As you can see, we will get the user email
‫and user Tweet and display them in this row.
‫And our recycler view, we'll have a lot of rows.
‫Okay, we'll have as many as we need
‫and then it'll display all the Tweets.
‫So let me go to activity Tweet.
‫So over here I'm going to copy everything, as usual,
‫and let's come back and go find the text tab
‫and copy everything and paste it over here.
‫So this is where we write our Tweet, okay?
‫And let's go to main.
‫And here you go.
‫Let me find the activity main XML
‫and let me copy and paste everything like that.
‫So let me try to do it one more time like this and copy it
‫and then come to the text, delete everything and paste it.
‫Here you go.
‫Now we have our sign in and sign up buttons.
‫And let me go to activity feed.
‫So let me find activity feed from here as well.
‫So let's see.
‫Yeah, this is very neat.
‫This is very short.
‫Just copy everything from here and paste over here.
‫This is very short because all we needed
‫is a recycler view over here.
‫It will take the recycler row that we have
‫created previously, and it, it'll just show the data inside
‫of that row as many time as we need, okay?
‫So this is what you need in order
‫to complete the XML files.
‫Now we have our menu, we have our XML files,
‫now we need the Java codes, okay?
‫And we need the activity codes as well.
‫So that's what we are going to do within the next lecture.
‫And make sure you, if you want to see the preview
‫we can just hit this button, okay?
‫It isn't very important right now, but
‫if you want to see, you can come over here and just click
‫on it in order to see the preview once you are in text tab.
‫Okay? So that's it.
‫Let's do the rest within the next lecture.