You are on page 1of 9
Mobile Application Assignment Vy. ARUNY. UMAR 22200 UI 8004 gen Comput ert saence. oe an MW -yeot - A -SecHon le \) Exphain the List View and xML code Dey Lriefly, wore about adtoubutes ot test ev > ade ot corel’ Hemr arene esee MN Andsidid — Using pict wiew, : # 1t helps you Jo displaying, the date in the Sotm of Scrobleble ist * uses can Ben select omy Ait ten by alicking, om Jd * dict view is widely uged in aundstoid | apehs Cations, A vey Common example oF bigiview (S yout phawe, contact Lak, uote yor have 5 Miter meee! entots dis played in a pictvien and it luca crenata ees + infevmection is dis played jist views in anddtoid atudro , Listuierw leg present inside containers . From spheric can Adtop On viditual mobile ¢creen to jou | coleate it plte that ve ly. yor can alee yim toda, 2° Ceteste it | | i | | Andstord ListView — >w_ ao 2 listview) yng 1 ands = ¢ hitpy/ Schemas. andswid, com /apk [res / andswid ” XmMing tate = "https /) schomas, andiaid _ corn [els andstod vid =" @ 4 id / simple pistuier r andKofd ! layout width =" match pastent” andetoid < payoud hetgld = 9 wep content” dele : condeat —" abWanantioid . con, dicterample, main pcdividy Tiss | 2 Listyies > | pidonbstes of lUistwew * a oe ees ee yist view 3) Aerseght: The speagy He hylt of He ie) eke reer rhs cali be in dp Gensity pivel), Cécale independent pixel) of (rixel) px, 3) divided: his sq drouable ov calor do dotaw between Ai}festent Fest \tems }) isd Selecdey * Listselecdor prropasehy is used do set tthe Selecotoy oF she \isdviews . Uris generiably Ovorge. oY Sly blue caley Woe shey lout = you Con also define yor custom color or an imgye 08 a Mist selecto¥” as per your deaizh >) Explain she gd view abisubutes with example . => Pndsudl sasiluies. Slacs stems in Ss — Aimensionot ey) gn Crows §& columns ) aud she gra Jems axe od hhe-cessaii | predetermined bot they auto medicnly, inserted fo fhe dayat @ bst depter. Guid view ‘sii : * android * les te the > unhich wonquely | entities His ae si pndstoid , cobumn \ ans This spect fies she tived wide Fo Sa Column. This cord be th Px Ap, Spt h, ov Yam, * Aes ees . Pasa : grravidy specifies he greuisy within each cell. possible volves arte ep, bottom, bert, stight | conte, center vertical, centen—hovizontal ee, + prdnoit «horizon spacig | peter jhe Ae Falt Peon spay, between Cobwmng “tic coll be i puree meee” sor Ri fa Andsisch es Codauons Dedines how Mee be an integer vabee uisch honk display We ab i othe Colurng sto Shows, MOH » sy auto_ fia euch A ‘lo Cee Cobumvg as PSE! available space * Andsieid . verica) spaeiva | petines rhe. Ree yerdical tas betwecn Sows _ This ewld be m PX ihdP ,sp,in, oy mm. Example - gre | com. example, hellowerld ] mon pesvidt, Jal Package. Cora cxamplé . hellowerld ; wmpors onisiud ee iuandle, mpd android. app. Actividy 5 \mport ondioid . view . meh 7 import andsoid. widget Grid View} | public claes main aeisivity ere nekuidy 2 @ overorde yoid on erecta. Ceundle cavedln dante cicte ) | paotected ke | Supet- | get context view (ie. layout. activity roi J; oncreate. Csavedinstans state) 5 Gira view: grdvcioa = (eid view) -find view Byld Cesta gridview); | 1 sed Adeptey ( new Imoga. Adapter (thisy) a wens 3 4 3) Explain brietty about image view. => Ww andwid we can use “andsoid”, Wwidged mage Ws elogs to displ. an image i is Simple do use but do master, becuse OF the various geveers and dpi in Prdowid | Adevies prtvod wil Jind he image. atom eee ns Add mane. oa Resowices * pet owt images inde Fodies, “ves Aral ‘4 ” Bre.c 1A Doe ae | D aeeee , len wee Py | no mote whic ae FS | \n audoraasically 8 dhis | prastold ele eties ee: r A : “i Ravkcieacety) | ee een android pry" ond oom stration wages ane used a yiew ' aaa) ye “ver pogpuk [moin. xm” dite. yugt Open ne add an Imag-— viewand puddon For dewongdrackio "3 on pele Wiewd — usill is pag Neudzelt Pel 2P ym version = Cm encoding, = Mechhw 7s 2 Nivean version, =" beuencedie, — ‘uci aol ele 2 linea Layout suming: andsiois =“ bdtp : il schemes. aniroid com /apk/ res andstoid” aundsroid eyo — cok — ee paren | and sted : Jayod — heigha =“ til portent” prow exiev non = 2 vests) a 2 wage View ansnod 219 =" @ 41d / oer o- with= twmap _ ented andor + Aeyo : and101d : Jayordan heigh = “usep_ content” andmoid Weatevic = G2 dvavbte fardsoid ix Z prvidon andstoid : \Aat@ « i / btn change. Amaze! andord » Jayfoud — ee amdrid ; Jayoud— height = “usiap_ content" “ip si “usep_ content” N ae andosteid vteat = “chonge Im Ye code + » Givpls ken cton 1s 4 clicked chesge i+ 4° “antnod 3d Pag" ¢ my pvdsioid APP ncn dy Pecos Paskage Coll Mi yourg. andstord 5 \mpovt andstord . Apr - actividy + Avapovt avd. OS. Bundle } Inypont andsiord + widg-eb uddon wmpord android wid got wage \wngoret andoiad .vie® View 5 pm pvt avdsiad . view. Wen. oO clicw isdchet 5 Me vi oud put + le regs, 4 pn doroid “Phy,” nes as played

You might also like