Android RecyclerView Step By Step Tutorial (Part 1) Introduction - 2016

Android RecyclerView Step By Step Tutorial (Part 1) Introduction - 2016 - Hello friends Android tutorial and tips trik, The article you are reading this time with the title Android RecyclerView Step By Step Tutorial (Part 1) Introduction - 2016, we have prepared this article for you to read and download the information therein. hopefully fill posts article -, article (Part, article 1], article 2016, article android, article by, article Introduction, article RecyclerView, article Step, article Tutorial, we can write this you understand. Well, happy reading.

Title : Android RecyclerView Step By Step Tutorial (Part 1) Introduction - 2016
link : Android RecyclerView Step By Step Tutorial (Part 1) Introduction - 2016

Baca juga


Android RecyclerView Step By Step Tutorial (Part 1) Introduction - 2016

Hello, everyone! My name is Oum Saokosal.

I will talk about android RecyclerView.

It is in English version.

I made it in my version already but I decidedto make it for you guys.

This is where you can find me.

This is my channel Oum Saokosal and you canalso find me on Facebook kosalgeek, Twitter okosal and github dot com in kosalgeek aswell.

I would like to talk a little about the historyof RecyclerView.

Actually, we have used ListView for very longtime.

But ListView is not very flexible.

Android decided to replace it with anotherfeature and they decided to call RecyclerView.

We will see the flexibility and the advancedtopics about this in association along the way.

The RecyclerView comes with the CardView.

A CardView is the piece of the item that usuallymade it in ListView as the external layout.

Recycler view can get another cool feature,called LayoutManager.

You can decide to position from the, scrollfrom the up to the bottom and bottom to up, scroll down, scroll up, whatever you wantand another cool feature is the ViewType, if you decide to explain multiple items.

Like, you have two images and then the secondone, you decide to have three images and you can do that very easily in the recycler view.

Actually it's not easy but it's built in.

Like, you don't have to include another library.

Maybe some other source code from somewhereand another one is the view holder.

It used to be something that you decide toadd yourself in the ListView but now is the part of the library and also the animation.

If you need any cool animation, you can usethat.

It is built in.

All, maybe just use somebody else's code calledit's like black and it's very easy.

And this is some, like I got it from a Pinterest.

Hello, everyone! My name is Oum Saokosal.

I will talk about android RecyclerView.

It is in English version.

I made it in my versionalready but I decided to make it for you guys.

This is where you can find me.

This is mychannel Oum Saokosal and you can also find me on Facebook kosalgeek, Twitter okosal andgithub dot com in kosalgeek as well.

I would like to talk a little about the historyof RecyclerView.

Actually, we have used ListView for very long time.

But ListView is not veryflexible.

Android decided to replace it with another feature and they decided to call RecyclerView.

We will see the flexibility and the advanced topics about this in association along theway.

The RecyclerView comes with the CardView.

A CardView is the piece of the item that usuallymade it in ListView as the external layout.

Recycler view can get another cool feature,called LayoutManager.

You can decide to position from the, scroll from the up to the bottomand bottom to up, scroll down, scroll up, whatever you want and another cool featureis the ViewType, if you decide to explain multiple items.

Like, you have two imagesand then the second one, you decide to have three images and you can do that very easilyin the recycler view.

Actually it's not easy but it's built in.

Like, you don't have to include another library.

Maybe some other source code from somewhereand another one is the view holder.

It used to be something that you decide to add yourselfin the ListView but now is the part of the library and also the animation.

If you needany cool animation, you can use that.

It is built in.

All, maybe just use somebody else'scode called it's like black and it's very easy.

And this is something like I got it from a Pinterest.

It's a very cool app.

Even though it'snot very popular, especially in my country, nobody knows Pinterest.

I live in Cambodiabut maybe you know a bit about this but you can see Facebook.

First image, you have oneimage and second one you have, three images.

You can just do that.

Let me explain a littlebit like, a ListView, you can find in my channel as well.

First you have data and you have to create a class that match to the data like, you havea table, let's say, TV in item, you have ID text image.

Then you need to create anotherclass in java.

And field must match to the table fields.

And then you added to the arraylist.

You did CardView.

You need maybe one or two but first Let's just think about onecat view and then the most difficult part is the adapter and you need another managerlayout and lastly you add it into the RecyclerView.

Even though the steps is one, two, three toseven.

But sometimes you just create it first.

You need the 7 things before you display somethingin the recycler view.

it's a whole process.

it's very long process and I will make somepart of it in HD video.

I hope you subscribe my channel and you can see the rest of thevideos.

Let's go to the android studio before that,I just want to use my channel.

This is my channel and I have it in combined.

You cansee now and people complain about here like, why you don't make it in English.

Now I'mmaking it in English.

But if you want to see cool things like android, My SQL, it is inEnglish as well.

If I label it like, something like that, it'sgoing to be English.

But If I put it in Khmer, it's going to be Khmer.

I hope that you don'tmind about it because I just want to use my channel for my people and you guys.

don'tforget to subscribe and this is the channel and this is some in Khmer but actually I madeit in Khmer language.

But now it's just still a mixing, a little bit.

But just subscribemy Facebook as well.

Let's go to this.

Just create and use an app.

It's going to be a basic one.

it's nothing new here.

it's going to be something likethis.

Go to setup the android or RecyclerView.

Just go to Google, RecyclerView like that.

Go to the first link and then you go to this one.

That is good material here and you justtake a look at it.

But before you can do anything, you have to add a Gradle in dependencies andif you add it, something like that, you're going to see some error but I want you tosee your class.

I will teach you how to fix that.

The font is too big.

So maybe, change font a little bit to sixteen.

Using 16.

it's good.

So, now I'm using android studio 2.

1.

2 Okay the date now is like, 29.

Because the androidstudio is always updated, so just here, click on Sync now.

What you can see now.

There isan arrow here now because you can see the library for the android now is 23.

It was21 now.

So, you have to go to this link.

V7 Support Library.

So you just, Control+S andon command and then you type RecyclerView.

So here is the letter.

So you have to grab,copy and then paste it here inside the single code here.

Now, over here� Copy and Sync again.

Now I think you're good to go.

And Let's testthe code.

So, you have to grab this code here, RecyclerView.

Then you have to go to resourcehere, then layout and actually opened it already.

You go to text here.

So, now is the shut andclose.

So, I want to close this right here.

Because you want to put something inside theRecyclerView.

And then, I don't know the name here.

I just call it RV for RecyclerView.

Like that one good item.

So it's going to be RV item.

Okay, that said, so, now, I thinkyou don't need it inside.

You don't need it.

You need the cat view.

So this one is enoughand you want to change the cat links for the overall.

Just delete this.

Just do it.

Let's go here, the data is going to be 2 things.

Because you going to grab the data.

Maybeyour data base, your server and I got good example of that how to get data from failing.

So, I think you can watch this and grab your data and put it into the RecyclerView yourselfor maybe you can just wait for me for a little bit.

Now maybe, just something like this you can just do it, like item, card view.

So, maybeCardView is the good next thing.

Right click on layout and go to layout here and I wantto call it ItemLayout, Okay? But I'll want you to choose yourself.

So, CardView here.

So, in here you need the CardView.

So, we go backagain.

Maybe just grab all of the code.

Leave it.

it's no good, so Let's go back.

Actually it needs it.

That's all.

If you don't need the linear layout outside, just deleteit.

Well, for me, I don't like this.

So, I just delete it.

it's going to be working butyou need this name space.

Here, it's going to be alright.

don't worry.

So now you haveone text.

So you have a window here.

Text here.

With this, 200, I want to make it thewhole with, use match_parent.

Whatever parent name is.

And the height is 200.

So, I needa layout inside here So, I want to use maybe, Linear data for coding.

So, what is the orientation? So, it's goingto be vertical.

Then it's going to be, I'm not sure, I'll have to update it but, youhave to get.

I need to put text a little bit and I make sure that text is black.

So, it'sjust like, Sample text.

it's going to be like this always.

So, this is the text view.

So,I want to have an ImageView.

Sorry for my English.

So, this one is going to be matchparent.

Maybe 300� 200maybe.

And source, here I want to have one image.

And you have Drawable here and you can't havecaps here.

You need to have small letters.

Lower case.

You cannot have space like that.

You need only small one and maybe number.

Just like that.

If you put the name in capitalor space, then you're going to have error.

I will use my Drawable for you.

Now, I needto scale down a little bit.

So, I need the CenterCrop.

it's very annoying.

And, this200, so need to increase the whole height of, something like this.

So simple thingslike this.

This is fine.

And if you want to use the reflective.

You can use that.

MaybeI have to update it but for now it's fine.

So, this is the CardView.

So, I have to renameit.

This is my CardView.

And maybe item and Image, I don't have id/ivMainImage and thisone is the standard that you want to add ID.

And this one is in for text.

it's going tobe TvTitle.

Right.

So now, you have the CardView.

So, you need the item, the array and the data.

But I think the video is good enough for now.

So, Let's test it a little bit.

So, if theCardView and RecyclerView is already inside the project.

We already included in the dependency.

So, just for RecyclerView, you have it.

Let's paste it outside.

rvItem and CardView cvItem.

CV item and this one here is rvItem.

Close this and rvItem, RecyclerView.

Findview by ID and then, cvItem.

Now, you can use it and you can have the layout.

And Next we�re going to create the item and we going to create maybe a like downloaddata because we don't have the real data, so we cannot make it.

it's a dummy data justto display and explain later.

you'll put it in the text or images and then in the ArrayListand follow the manager.

But for now, That's all.

And we are going to see you in the nextvideo.



Thus Article Android RecyclerView Step By Step Tutorial (Part 1) Introduction - 2016

That article Android RecyclerView Step By Step Tutorial (Part 1) Introduction - 2016 This time, hopefully we can give you all of the benefits. Well, I'll see you in another article post.

You now read the article Android RecyclerView Step By Step Tutorial (Part 1) Introduction - 2016 the link address http://svedda79.blogspot.com/2016/11/android-recyclerview-step-by-step.html

0 Response to "Android RecyclerView Step By Step Tutorial (Part 1) Introduction - 2016"

Post a Comment