Placeholder Image

字幕表 動画を再生する

  • what is up, guys First here and today We're gonna be discussing my very first enjoyed application when that's a little bit more than just a hello world application.

  • But less than anything that would be like appropriate to put on the APP store.

  • But before warned, this is a continuation of my last video where I had so much video content.

  • That powder is one video that I separated it into last video and into this video where we discuss that of my first real android application.

  • So sit back, relax and watch past force.

  • Take it away.

  • I'll see you guys at the end.

  • All right, so now they have everything open and running over here on the emulator.

  • Let's talk about the U I a little bit.

  • So I'm gonna preface this by saying I am no enjoy professional few.

  • This is the first video you're watching.

  • This is essentially my first enjoyed application.

  • So if anything's wrong, well, I'm sure my professor will tell me, but I am open to you, letting me know what could be better.

  • What is wrong in the comments?

  • Just try to be nice about it.

  • So over here we have our boilerplate code.

  • This is what was included upon creation of this enjoyed project.

  • And then I added in the relative layout, in order to get everything aligned properly, that is my list of you.

  • You can see where that is using this box over here, the edit text.

  • Same goes for that.

  • And then the button.

  • So I used relatively out in order to use something like this, where I have lay out a line parent top and lay out a line parent left that aligns this that is boxed up into the top and into the left.

  • Kind of self explanatory.

  • Sure, but I feel like it's necessary to mention that also, from my understanding, it is important to include the top in the left, as opposed to only the lay out a line.

  • Parents start like I have down here because what I have highlighted this start is good.

  • In his modern convention.

  • That is what you want to use on newer versions of injured, uh, enjoy devices.

  • However, the top in the left those air still implemented or thio allow your application to work on order versions of Android and with the start does essentially it starts the alignment of the list view to its parent, which is the sense in the background of this whole application.

  • That's why it is up at the start.

  • And if you want to give an opposite example of that, I have laid out a lion parent end for the ad item that is highlighted.

  • So it is at the end of that background part.

  • And sure, I still have lay out a line parent right and lay out a line parent bottom in order to align it down here on order Android devices And a lot of this is standard.

  • But also something I want to point out is down here.

  • I have Android on Click on Add Item, and that is essentially when I click.

  • Well, let me come back here.

  • When I click this button add item.

  • It will implement my function on ad item where that's kind of self explanatory.

  • Let me come over here to the emulator and just type in.

  • I could type in use my keyboard or this keyboard, and then this is one.

  • At item occurs when I click at item and adds the item on to my list view self explanatory again.

  • But this is helping me remember everything.

  • So I I'm going to explain.

  • So now into the meat of the code.

  • And now that I have my emulator running because I had update the emulator so it wasn't running earlier, I can actually show you guys what What's going on with the code?

  • So I have my own create function.

  • Where is this?

  • Helps with my list view?

  • Because I have read items in here and set up a list of you listener.

  • So basically, when I opened up my application after closing it, it doesn't delete all of my daddy because everything gets written to a file and read to a file, which is the list view.

  • So essentially, the list view gets written to to do dot text and upon reopening the application, it essentially, like, basically rewrites the list view to the application.

  • I mean, that's like the best way for me to explain it.

  • And then we've already discussed on ad item.

  • Let's go back up here.

  • I have set up list view listener and also have this function running in on create because this the one create needs to adjust.

  • Whenever I used this function because let me show you what this function does.

  • Basically, when I'm over here, let me drop the keyboard just because And I long click on one of my items, it deletes and that is how you do it.

  • One of the items along click Hold it down.

  • A regular click does nothing He is, you see, But long click will delete whatever you know, Adam, I'm clicking on obviously and that is what this function does right here.

  • So basically what I have in my main activity that Java file is everything I needed for, you know, to get a good grade on my project from my injury development class.

  • So I didn't need to make a pretty Oh, Another thing that actually needed to do is the way this, like generic title comes up top.

  • I figured I could come into here coming to the design and do something like, you know, double click on this.

  • Maybe there is an easier way to do it because this said to do as one word underscore list, because that's how I saved it.

  • But instead I had to come over here, I think, to yeah, AP rez values and then streams and change it right here.

  • So if I change this Thio to do without the space and I come back over to my far right here, it closes that gap.

  • But I went toe open it back up just because that's how I had it.

  • So a little little Maybe it's just me, but it's a little interesting that something kind of like seems that defaults onto my screen.

  • I know I can change.

  • I can delete it all that stuff using this file.

  • But it's interesting to me how that's the way I need to change it.

  • Although I have this storyboard like layout right here in front of me, I figured I could just double click on it and change what it says.

  • Which I guess I can't even do that.

  • No, no, I could do that right here, worth with the text.

  • You or I could just, you know, add that in on on here.

  • And that's how I thought the generic title would kind of react upon double clicking.

  • But that's not the case.

  • And that was the application, see?

  • Nothing too special but unhappy with it.

  • I'm very happy with it.

  • It's something that I had only three hours to complete a CZ you may know from last video.

  • Luckily enough, is computer science offer developer type people?

  • We know how to use whatever resource is to our advantage.

  • So I used the Internet and all of that has to offer to my advantage to get this done because I'll set at such a time constraint.

  • If you really don't know what I'm talking about, go watch my last video.

  • It was a struggle.

  • It's called bad a bad day as a computer science student for a reason.

  • Oh yeah, And I'm also in the works of making another small Injun application for the same class, which I will be making a video about here in the next week or two.

  • So if you like these types of videos and you want to see what I have coming next, don't forget to subscribe.

what is up, guys First here and today We're gonna be discussing my very first enjoyed application when that's a little bit more than just a hello world application.

字幕と単語

ワンタップで英和辞典検索 単語をクリックすると、意味が表示されます

A2 初級

初めてのAndroidアプリを開発 (Developed My FIRST Android App)

  • 4 0
    林宜悉 に公開 2021 年 01 月 14 日
動画の中の単語