Title : #9 Android recyclerview and cardview material design : android xml parser tutorials
link : #9 Android recyclerview and cardview material design : android xml parser tutorials
#9 Android recyclerview and cardview material design : android xml parser tutorials
Hello everyone ,In last tutorial we Loaded thumbnails using picasso library.
If you haven't seen my lasttutorial please go back and watch it.
Now in this tutorial we will design recyclerview.
So let's get started.
here is my android studio.
Create new class name it as vertical space.
extend this class with RecyclerView.
ItemDecoration.
go under it create.
int name as space.
Create public constructor with int Space as argument.
take space from constructor and save it in class variable space.
now press alt oand implement get Item Offset methode.
remove super statement.
give space to right , leftand bottem of Rectangle.
Now if our item is first item then only we have to give top Space.
Now go to readRss class and Add this Item Decoration to recyclerview.
define our verticalspace.
Go to styles.
Xml.
open theme editor.
change Theme Parent to appCompat dark.
now go to custom row newsitem layout.
Define Cardelevation as 4dp.
Card background color to @color/cardViewDarkBackground.
give date textview margin of 16 dp.
give dercription textview margine of 16 dp.
changebackground color of title textview to black with 80% transperncy.
Here we are good to go hit run on the top.
here my app is running bingo that is verybeautiful cardview we designed.
look at the title transperent background looks very beautiful.
How cards are saprated with each other and margins of all textview.
in the next tutorialwe will work on recyclerview animation.
Stay tune If you like this recyclerview help usto make more videos hit like , share ,subscribe and let me know your thoughts in coment boxesbelow.
for source code go to my website link is given in description.
Thank you have anice day.
Thus Article #9 Android recyclerview and cardview material design : android xml parser tutorials
You now read the article #9 Android recyclerview and cardview material design : android xml parser tutorials the link address https://svedda79.blogspot.com/2016/02/9-android-recyclerview-and-cardview.html
0 Response to "#9 Android recyclerview and cardview material design : android xml parser tutorials"
Post a Comment