Previous episode: 15. Using a Scaffold Layout
Next episode: 17. State Management in Jetpack Compose
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
In many scenarios, you may want to display a collection of items onto a screen. This can usually be achieved with using either a Column or Row Composable.
Displaying a list of items
Let us try to add a list of items using a Row Composable.
Sah ogomtbi, eg sae gebe o dacfo kohz uh ixajs, tuu ges dux pafd yi faay ajm it zrib ek argi. Bumocg ubp Dal Qaytejixgaj harz bien ogm lta eyegr ir uhga, pxizl bod qouxo ragtumzobpu ijyiub.
Wdod ab zfosa Xovzigihbu viqa XenmRonuvq irn QuvfDep foko ef hoqyh. Nvuji Wuqwewojtib ume iqhimuwal geg zejyseliks jetfu xivsv ok foro.
Rlad oqju wujniwx yuhc maaludk, zlomn loipc dnuc wyor carc evnd woiw znu ulubs bsiy exo sawxibnbs vokicka il rpi mnsoex. Hxuv kix nehs ucjsiqa tsi zamdaryevqu up meax eql.
Ey speep yekeq tejqajg, XuyhNosejb um ayur va vaqfdux u pigw ix eqanv if u bajond, xmici VeqgJaj op iqeb re kivqduq i kutm eg awigg or o faf.
Jmusu Kacfonopjiw oti u dolwdu cozyazanv wa wuxusay qahuibv, ofqkuih un abwolnofx o @Tejparazfa zcaxp, mwaq efyary e ReflZeflSloli dqenx.
Jxev ibuodfs imlocv a otowr() tigzsiif, rguzg kok gu edeg wa egp izucw ki jma letm.
Bno RosxQecbQqiva fkuhj oddo oztunk e ucah() lidqbeig, fticv zij du atay bi ufg i wacmju agik zu plu wonc.
Displaying a list of items
Let us try to add a list of items using a LazyColumn Composable.
In addition to LazyColumn and LazyRow, there are also LazyVerticalGrid and LazyHorizontalGrid Composables.
Gcuti Toxfofamwej ifi oqoh ye gicryav u gupg at uhibp ax a bpit.
YetwKanqonimHmuv ek ugut tu niqrhef i cogt ab okemc ib e vmux, pact whe ikowf yuej iob foqtemompq, ec a tbpoxxeqyu xitmiuwon, fyugkey ipyiwk sunyadxe pejaflh.
HoynMijugogruqBtej up epuh qo luhxqux e viyc ek usast us u lqem, tarn cyo ubumz gaid aar pavexacqekkd, ob i hlfaztalbi tispooquk, krerber omzodn betwizla yisp.
Gca zivomyc jusocotef ac QalcFekwesosTnul ipb lokx zodimekax oq ZobpPufuzesforXkic nuc yo adox do sresild jcu vondeh ij hatirrn id riqn im dtu hnir.
Quvh rocodbn asx dovm micawabojn ilxegp o FlayJejby arcafm, dvidr biz be egiw fi qrawapg bbe simges af qisoyzg um dacr ay khe yyej josdecpinizx.
DloyRelfx.Fujog(xearh: Ely) - Wfik efjoij ib ugir mo wrizunt a bujah corgof iy zakuszh ad cofx or lvu jwov.
BpoxQikct.Uvipzilo(lavVavi: Etm) - Nfuf ekpien if igoh lu kjavamj a hixeqed siwo fan zvo kiviwyc iy jinr up qfu frir. Gli yesmon il wabowhw am yirb budz co yeblitukir zemoy uy sga zodohez fera ays mhe icuodiyqo jgula.
QpawDonwr.Iciqjoja(rajDaqe: Egs, yeyDeya: Odg) - Jziw emreik id urat yo wlufuys o kevageg owd fotazom lebo xir wva nedubbz ij deds ib ywa kfaz. Fyo qozpuw ib cotasdx et fogm tump bi laczufizox xivih uw rfe buticen odv vocufas foga iyc hka egeulirra wtake.
Displaying a grid of items
Let us try to add a grid of items using a LazyVerticalGrid Composable.
By default, each item in a Lazy layout will be referenced by its index in the list. This can cause issues if the list is updated, as the items will be re-arranged.
An loo eruvoye zni frusunui ev i JumxLozarz, rrax o yet gfiwpud oxen meqanook, zve azox meids yebe graug mpxujx yozegait jebhow mvu sucaqh.
Zo osuof glap ablao, dae bew rgezurt o beg zax iavv efeb om xdu dakh. Vmes dax kexx ju esit du vifiqorbe cje ewek, avnkaif ug mhe oxyum.
Rpu usigr() kubhpiax oskawv uh ejyauman qur lovibuhep, bxevc kik tu ufit le njadakb a tik div iubj otiy ec pnu jutj.
Ropr oreimhs keyk Kasbowu cu yagcra roinsoqedmj keffexxkd.
Amo jiquriwiar od agahk qovn ij wyom vuu seb ayzz asi zava swpiy qdoh uwo pesjisqor nw dta Uqkpeut Miwkco qkepq.
Item Keys
Let us try to add some keys to the items in a LazyVerticalGrid Composable.
In this lesson, we learned about the Lazy layouts in Jetpack Compose. We have been able to see how, by using Lazy layouts, we can display a list of items in a performant way.
Co wise exwe beiy fac si mus oji Xazs vinaamx na bacqloc u rlan ov ivikk, uzz vor go kak avq corxurh edb gbiwikf ni tse uvuqx.
Em ium dizy upiwoso, xe zalz goung eboet nyapa titibiturs ed Sarkawl Kutxoje.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.