‫Hello, my friends.
‫So are you excited to click on the run application button?
‫Yes, me too.
‫Now let's run our application and see if there is any error or bugs we need to fix them.
‫And here we go.
‫This is our first error to to use coroutines features, you must add artifact from room as dependency.
‫I need to search for this android dot room dot.
‫Or if I go to the.
‫Android developer site.
‫I need to add this optional extension Kotlin extensions and Coroutines support for room, so I need
‫to add this implementation.
‫I would go to the cradle.
‫And I will add this near the coroutines.
‫Okay.
‫Here we go.
‫Click on sync now.
‫And.
‫Click run again.
‫And here we go.
‫Congratulations, guys.
‫This is our application note taking application.
‫Let's start adding the.
‫The the notes.
‫But first, I need to change this ugly color.
‫So I will go to the home.
‫I need to check for the fab floating action button and I need to set the color here.
‫I need to change it.
‫Tint color.
‫Go to primary.
‫I will set it to.
‫I will go to the color hex.
‫And I love this red verse and I will copy this.
‫I will paste it here.
‫And if I run the program now.
‫And here we go.
‫This is better.
‫If I click on the new note, I will type here.
‫Enter your title.
‫Kotlin course.
‫We need to review the Nvme architecture.
‫Okay, this is the note I click on Save and here we go.
‫This is the first note.
‫You can see the staggered, the staggered, the card view.
‫Click on new.
‫I will add Java lessons.
‫Don't miss to review the OP.
‫Click on Save.
‫And here we go.
‫This is our newly created note.
‫You can see the colors, guys.
‫The colors of the notes.
‫They are generated randomly.
‫You can search here for Java.
‫You can.
‫Search.
‫You can edit, you can see Java lessons 2023.
‫Click on this and you can see that you've added and you edit the title.
‫Now let me add a new note.
‫Python course We need to publish the python course save.
‫And here we go.
‫This is our notes.
‫But I've noticed that the layout for this node is taking the screen, so I need the whole screen.
‫I need to change the card view.
‫So note layout with despite the height would be matchparent.
‫I will make it as wrap content.
‫Here we go.
‫Let me run again and get the.
‫Notes from the database.
‫You can see guys that I wrapped the content, but let me check again.
‫There is a wrong display here.
‫The height would be matchparent.
‫I don't think so.
‫It's not better.
‫The height of the cardview would be.
‫Wrap content and here would be wrap content.
‫And wrap content.
‫Okay, so I've turned the card view and the height as wrap content.
‫Let me run and see again.
‫It's better, guy.
‫So we can make like this.
‫Okay.
‫If I need to add or edit these layouts, I can click on one of them.
‫I can delete the.
‫Notes so I can delete the note.
‫Do you want to delete this note?
‫If I click on delete it will delete it.
‫If I click cancel, it will not cancel it.
‫If I don't need to edit, it will be good.
‫But in order to display it like this, I need to change this constraintlayout to a linear layout to
‫better control the orientation here.
‫Or vertical and I will change the height to matchparent and the width for the matchparent.
‫The height.
‫Wrapcontent.
‫And here Matchparent.
‫If I run the application again, it will give me like this staggered because I'm using this staggered
‫form with a linear layout.
‫If I click on new note.
‫I will use dot net courses.
‫You should start learning the Dotnet.
‫Courses.
‫Click save and you can see the Dotnet core is generated.
‫You can also notice the randomly created colors for every node and the description, the small description
‫from the body and the title.
‫And how clean is this note taking application?