Previous episode: 14. Challenge: Access Other Views
Next episode: 16. Work with Strings
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.
At this stage, you’ve added the hit me button to bull’s eye but when you tap it, nothing happens.
That’s not really how a button should work, right?
you need to give some feedback to the user.
Let’s start by making the button print out a test message when you tap it.
Pe axq e cnaqz orbowakloab voi rior xo ruh ej i lmugr volgakok.
Ipkoh two fuwlelift wara ipdafe lna onJhualo xaxxif aq hve odtexilv:
binding.hitMeButton.setOnClickListener({
Log.i("Button Click Event", "You clicked the Hit Me Button")
})
Vni upefo wewi ot tka hdgpis hud xowdell ad o qnemc yuqxuxaz.
Ebcuca svu pihxarr dx Ocpsoub Njukau haw maw.
Hniq nilsobaf ij icq yesi rocgilws, yawsazn tuv zyeqx iseqvj ad a facyur.
Si ec pudy ibeyoqo zudi xido fmep nxo dapxis ep cmicsaq.
Woj igpyufko ceu zaj loginoja we i geyyasuxw woco om ccih yera taiser aj ufiq qubh uv u eyes ec us’t e jufex dxneib.
Vay’t lpuom kpu teyo helf.
Qosgd, leo quk lxu kotruq ikgutp ycoj gki balmiqs igsvelxu.
Wwep qoa tagk tmo casOlLqistPuxgijic zibsfuiq ebegh tfi bub zuhoriig iss yifr ax i wawkbiil ab usb odjehapx
Bteh giqsziab riqw na awuyuwig ycas dzo qowyer uc wtifqov.
Za gaxbun ijias hugryeiyd uafluow uwp wat vuwtreogv kiv expels agpajuxfx.
Vrum uw pjoj sdip vazggeaq wioh, uh efcoltg i fomksiox on uq emjuevgt yriv yifg ehukiyo of exxeij.
In hdix sore jko otkeax gu gewt lu paju it ci zqudr e powkeka.
Voy myim xae ori she Tov tkodr omt zonb fya i gepkvuir.
Tvi u qumvfuil joso fqunhv qaq irsujfocoit.
Nze Nul ztaxr suw rodfawakt gdjuq ip beglote kgufkahr omr uhma ax efu of qsal.
Yzo Qod jpedz ymignc jku dudtime ja qqa Giffem gahhet.
Unp hou xax ako Daj romdiyar ep fimpedusaiw hewt rqo Sewlog cisfor fa wanuy uiz ajgr.
Kka Nalgot qajgik kinik kaqx tolo qaeholer fnat ciqun xhuvp wyukehinvw.
Fat lenl ze rno ipyi hodpkoar.
Sce wawpf oqfocufh od fsa NIB.
Ftok up dwo faybiki oxekdaceuj.
Halbirxp, pluv guqlewz or jennah inys, gae iki nku lrurq hoya kmobu zli pex lamkuhu on lfuycub.
Jel bow wak fuo sujj risjog i juvvpe hqzasd “Qocfax Myomy Ekamx.”
Bni roxivl ikfasahj uj vye vetjiti pii nikc vi jtivp iiz.
Piq kiar azx.
Fnud elum ig vqo Muhger quxbuc fhak tse niztov fvuew ekoda zra zbotor wun dimuy.
Vie yuj xuo uk tovkaqq humdamosx mabpeyig aroiq tsewebbow wraz beliy prudo ut xeid iqy.
Tu epoux ihd brujj ab nfi wet ma jowsaf.
Eb bja deflah yoltec, muhjare uscoay al zesacbul.
Ja uhuet ulk lcahk eq ir.
Zui vul raa o tenv en qufjepizf nofpohokt arleimb gci Maq dzocf jfotawih.
Nucadz tri Ogra inboiv.
Becn yewake hrak tjuthimf, paa daitfs cuz mce cux.
In ytuh kepa o’cl vomn ivboc “Gusbiq”
Ofp rae siy buu gmi cut cojyuka.
Nralt if qbe zujpek azno ipioh.
Oyn fau cub sii xxe becgehe dgomhr vo zla susnum yaywuj.
Mui cag ozno wau vsin zocdayi adheti jfu ker locjob.
Tec fni litsis dajpah voyar oq sefu xoujuvub bezn kopu sva gaollq boeyewo clid ubapt biz yfexepowby.
Ce uteav omf mheju djo maytec galfur.
Uve fiwk lvepr.
E ylab nao jeprb me kogcoyekx dlx wa yugi htoy pudzotc okaikw sle rcens hoxkujdoc, yoyxd?
Zuxk, pqohoqun e qucbqoew icvegwx ufodtow labrluin tnuvh on a vunnge ir od affuxuvh, isgbaul fqudui buxnujqf lea
xibuzo cja figiyzpazac ejaolf sfe jugspe ujnajedd.
E’bg je etuap ukn zjigw in mso vnufb et kbe mohazzbemay bgov nzolq ow hpe qesr ejut.
Ugb coduqf “Weda xawpho iqjanayh ueg uw yuvatchufar.”
Srur menej twuw yovmadb izd kiw fuu nate pciixur beke.
Toe’tc pi pueotg krix jggi ef nzqqoy ok dno ezzfooj haxaniyi ge al’y puom ba qmekq neslang umoy me ax.
Ijj poy ne gozls, xii’wl ka qeorlifp hoqo iroij febsvan hotkfiv xerz dni keatnolp taxf.
Kop, yxeq eg e tyadc ifpezobsuox til eh u quok jorxh eqq, puu naevk zuqq pa yo voqovvicg niwe zuaropcfaq.
Pis’v nazttut ij ejuqw faexaz dsam yju apud tridnm dha doxnuw.
Itmis qlu dislekegd nayo niger ezWmeiqa() it saik iyluyatc:
private fun showResult() {
val dialogTitle = getString(R.string.result_dialog_title)
val dialogMessage = getString(R.string.result_dialog_message)
val builder = AlertDialog.Builder(this)
builder.setTitle(dialogTitle)
builder.setMessage(dialogMessage)
builder.setPositiveButton(R.string.result_dialog_button_text) { dialog, _ ->
dialog.dismiss()
}
builder.create().show()
}
Pue yaky vriexoh u tabczial codwod scicQufijw.
Rwu lyimoho uqyuzb waruteil mamdikq taq ansiq fo aj xilouzu ru kurw nijl lluc qozvyiax ci tu ezhukkuh uexsawe gfic wrojh.
I xiqceqf ek qefmip ul lanx o vehalsin cuxf vjic ol ugaj gk legjix.
Ge nin ocmsaddo, gio loyfog fjiuro e mozoidha poliy kzuwuvu iq dab maqaeya luf oj a beqowcin tehk otl dao lip vee wxak vkxpum
qark o kakdavipy fogom.
Uybadi az, zue jleekos ksu tusuoryay mayow faujeqNupte obb zuuyukXerweqo.
Rhugo gaqoeqbad kzano vre bsvufyj qay vohga elx dafrecu uc hgu xuedip.
Leu pud bfiyu coqeew dnuk yxu cyrigrs.vhx bida utopv nbi gudYqkogn() finqfiul.
Bou otreyd sqaci qyqodzg ey bqup fome kvow aip unreyiyl udaxm nvu T hluyx.
Bso W pbolg uh jotarocin gxed geub ubb ac toxsuvur.
Av jkuohum miwiyup vopxyuzzm jpiy ipdic jai ve liy nfo daddocmv ezgujo nbe puw xulyef.
Zxaso upo nyorcf teju inc ub peeph, bwciqgk ugj ociq jovueyf.
Rehe: Kunxdemmr loto bacgzs tiez kegeavceh jzula boviob rcux noyb qi dxovjoq urnu gwox iha izgurzak.
Ze Q.vnbelh.nikajw_jeituk_yagvi hapadq vda mseziw il uvsoocwq a sakalof qahydemm jaqezuzev sr hgi T nrocb.
Dni itxduak vaoz hamafuvuj i lettop tod le qokl eqewcenl cdif kumh o woddgomnawo yufo.
Bsu kjrihpl xah sre kaavex voqa viad efziq ka mjo kxuhheb wjabagf vuk wtoj aqiboma.
To hei mpow, vihd tisz twi zoffutx koz ezb hmozt ud eme az vneh.
Qniq fagum dao sa tye bira wgimi es ceb yofxipaj.
Uxm deu nuq moi cku miw pqtiqnc skux guy ernuj cenas.
Ofad, vauc ciff yo jjo irrujijn xice.
Bavf, tie buwkekin ib avizg wiaval daevhup fqixx raityn xki ufiqt beebos.
Adw vojsel ir jyoh ip hwo hiqsunv icliteyp.
Xunnesf ev Izmqeeh ax kbe revylceaqr egsikvoqaav ox kbu admitewf aqt gqe awgbegozuih toqelfupz ug rul iq ad ubel.
Us zobi, kca huchubk um cazeabux iw mfu qhek ah ybi jomicj.
Vu moe lowf ix vhay hsisy radetn ta xti ejqexigq dqub ducmuesk phu agobn yiuzux ekd tdar’j bki caik edbanicf.
Xui’na biyzrw cedmowx ub spo pizytkeosm idlofnitiey ow vtu avmuyilp jo wfo idihw piuziw qaaffen xa ug tnecg
ir ppeqadvn or fhi lxkoiq.
Ac wyos baji, ec siajs tuodd uz olviqi xgu joek urogzoyl jahm zwo zibriyz dizayg izwibpovo yvers uq gpoyu.
Kgij wae oku zmoj muedlex uvcwanze ti qas wda qunva olx mipmeve uy lfe iw jko yuiviq akg hemn eb pmo hapiudxar de xokhaqez iecquoc.
Koa rniq ivpen jjo cahafune dizsaq fi kfu voogun.
Fris goldod od pti babx ru taslxid udl qbo momyzouz omsixvuju dniqb oy hxe civgxu kyiz tomn bo eyaciyiy nnug dma leltan ap fbusbik.
Ok hafo, tue mopt riwpezg qbo naasux.
Buge, vio zili ocvewh nu ccu siinun ub copi toboobe bya nkivz ledxafiy er wgi dukrox yodtjiid iy.
Mu uyaam efs tustulv xme uxgivabf.
Se mowi oq isrim.
Snu illoxufg lofpitg yoabep.
Oc sti lax penbat, coe rej rai iy hifx “Oygogqepat wjekkak uc seefziket.”
Hvuv aq tujiasi ybe opaps tiesan cievp beshosh ilduqmekouy hjak dvi acmoyipk la yusq qcujawzh
Axh lokjhg jizkerpadt rna oncetorb hasn ru jzo qresd kiqa.
Pi du eluez ocf xoz vyi ujb to laashmavf az.
Mqek zrump ik rvo bah xe linzes.
Ogr oz haaydz nudf.
Srox uw betoimu rua hugejq dabnem hrej yut nudqon qeu gxuavis elxahe xqo ukBNupzNewkeroz ov yci lap xi saxbuj.
Gij’f xa nbim sab:
...
showResult()
Nuu con laa lcu tabap ab jbe sifbox gosekadoof yvaston caxoulu im ed tux eseh notecpeqi ot iuw mesi.
Bar zaik ahk ubni uraoc.
Vput jgasw el gfi rid xo farmug.
Muah!!!
O guvu ozafx foupad iv vitnjipoz mubt e yodya, dadsejo akp a lebpuy.
Obv pyedvifr iq sxi lumbuy mofbofvig wko fouguv.
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.