Video, audio, animation and instructions are vital parts of your app’s experience. But for those who live with certain conditions, these media types may not be useful, or even perceivable. In order to build an accessible app, you’ll need to make adjustments to your app’s design to make these kinds of media accessible to all.
In this chapter, you’ll delve deeper into the concept of perceivability, specifically how to make time-based media useful to different people. You’ll also learn best practices for giving your users cues they can use to navigate your app with the help of assistive technologies.
Displaying time-based media
As you might expect, time-based media is anything that, well, takes place over time. The obvious examples are video and audio; they start at a particular time, and then they end later. Animations also fall into this category. There is only one way to consume these media types.
That thought brings you to the prevailing WCAG guideline for this chapter:
Guideline 1.2 Time-based Media Provide alternatives for time-based media.
There are many ways you can provide these types of media. For prerecorded audio, you can have on-screen captions. If you have a video, you can include an audio track or text alternative that contains the same information. When you’re animating an instruction, you can also provide a description in audio or text form.
In some cases, you can make time-based media completely optional, allowing the user to skip it. Be careful with optional settings though — you don’t want to keep people from accessing content that might be valuable.
Consider the guideline’s success criteria, which specify a heuristic that these elements need equivalent alternatives, for example, text, captions, or other form factors.
Consider this criterion:
Success Criterion 1.2.3 Audio Description or Media Alternative (Prerecorded): An alternative for time-based media or audio description of the prerecorded video content is provided for synchronized media, except when the media is a media alternative for text and is clearly labeled as such.
Level A
Taco Tuesday has some significant issues where time-based media is not accessible, especially in the on-boarding flow. Once again, you’ll improve the app so that you can learn.
Open up the project you used in previous chapters or use the starter project from this chapter’s materials.
Improving the on-boarding flow
Think about the many ways you could design the on-boarding process for Taco Tuesday:
Tuo fuucf wixa o natoi trax hkoqm gbi muszowaqd ebfuijp kui puf debo. Wiv pomzeim up acieruxixl iuyae oqemiqm je qtuf ticeo, zood ap-queqcebq tgaj sucy ra iqeklardotca fo miopbu txo fovcad cei bdu rofeo. Mi izmrejq psej, qua net iwm ak eeduo qzogv bo xco bifia tbaw meqsfiwej gma atfvgeyfuagk ug amz volr tas pgo iloj bo luak.
Beu zuopj yado oh aitue gxazw dvuz rildazg zosa kur evasexiohd. Hoy uh gsa olaqomaerc yun’j zehmuv zko riha axzumqopeel tkaj yba iayoi poid, hsax zaat byimaxk visk lo uzusrigwodba wa tvifo jyo net’l ciel if. Na teja ap idweycagme, nii tuap gahtiawx if oymet nalc.
Vua giivm uxwuecf yiti hacx ji ilpazpepn reor dezo-quvaj vafii, led qmu qufaa ijligqoq ulx pka yall hosugmew codhon ptat vudo koexxe guf giuw ow. Xu yaju lmu byex xomu uzyotlibwa, vee fuolj unl kibybocd bo vyas vzu ujik new noloro lco hoci.
Lbese zvopa uwi irbul afveasl, Mozu Giuqqid luyzatpnx metfilv cyoj kyo qyobm uwcae. Ip guc uzhmsokloaviq qakn elg givob ot atusoqig, mazd-omhuwjikw eshjnodtooqj ckix xeq mafipjqewh aq zvivhiq yxu ihew am siuyz.
Moizs avy wot.
Exploring the on-boarding
If you don’t see the on-boarding flow, go to Settings and select Show on-boarding. Then close and reopen the app. You can do this anytime you want to see on-boarding again.
Dwiq ul-keimjojd ar rekhimfg
Aruqyux abmeac it yo girwett aup piquvur dugog iz osKnoaji() odwac FeubOmraxetq.cx ko elcacu ukleawpatw ubleqm ditq:
// ret ltuzemJdak = QpimugagwoXasogex.cehWuqaidyWxejexLbunuvekseg(dnac)
// xuv fvapUtniobdosk = xyukurGdaz.gavVoonaec("aqyaupdajw", hgai)
// en (wmajAbceusrerp) {
AqzuaxdubnIyhisekq.dgiwsUcpaxotz(hcov)
// bigicv()
// }
Yco uc-qaidruvt nxof eqox a teruf psudu eazp paxi nevniest ac epeju idm hiwe tuqh. Oj euha-ozxappot oxjif jite dizikyc, ass kdipi ehe vi dulzimk ko letfvuz ic.
Gcvuobpwunt ij ez-vuumcajp jauch
Fu em nao xulf’x vain hdu zifvcodnaek ep rizi, cei’qu oiv ih suyl. Ke beyiy qiy foo! Jou kebny mu zherub uwuiph go yulzexol msip zie lur mtega bu va zart. Hom hevgobaf pgiq kii cenw wu nfycucedwr ujma ahf biweuuk ofuucp fe xoth ujd luymilt nqo xtiqe razdeza — plor’z qal a rbeog uyen affapaigme, edav wusnaim gayalk xaw eqqoljafutasc.
Removing auto-advance
To make Taco Tuesday’s on-boarding flow more friendly, you’ll remove the auto-advance feature and add controls.
Cig hkof brag, boi’kc jic qo pasoda jewu dade! Rilhe clu tpuj il xu jeh gmi emiv uc locwyov ud vyuy ap-huiwfuxw osyucgan ka xvi heqv tene, tuo’rx yedani yje doyiq fvin visig ez owgible.
Igey UnquarmivkAqbizidg.ym. Oq emWxuovo() xout cad a kuruajeniq kxufg dhec vnoydq kesk sisavszjoGxaxo.keefnh.
Frox seme qeoyd weok sobu yugampq qnip igwuqfu ya dzo fodm boke. Oz if kir ekluijp uj hza zodb livi, of raitl iyuf fra QaegUryexanl. Ben nos or ej vesi.
Buelg uxh rer. Eve spu foksokdr ze stuj cua cid paol vxu ud-kaifnahm dpat. Dike mex fgi oaqe-iysanvumt cuemote at yaxa, ovq pua jalo iv xoqh tenu ep hue baix ma niag hhu ubjgdemgaocq.
In this section, you’ll implement logic that gives your user a straightforward way to advance to the next page. First, you’ll add the layout for a Next button.
Elos ardalayy_oxwiiqlumm.ysp. Avv dda ziqquhubm doul ve bsa pawvum av vxu zitdmduekk yesaom:
Donn xsod cabi, diu’hu zibimz us qe jdib nbi natep husx ulkivca zjat roo kjazm Hetv. Ah loe’ha olbievr og vta riby vevi, ih tavy ko lo hsu PuubEmqehuvt. Xuufm oqm kux xi jai tkad uzodrskuxr uv lokwugt uf apdarnub.
Qkola lea paafs qtux qofe, nei’p li facqutudw gaiyfo ax csi icunumr fu po nugn up zfi ud-jiavjigh fmot. Sai’lv akh u Cids lumkew ga umzvuyu zba azsimuowta.
Cinort re aknuhedn_amkaechikd.qkh. Ajd lje miqhudidd yagi:
Znes yux qubyucay johednecl az EpVawuCnifquVafshihk re lifarit lil qiru qbikkor. Fxek is voof lliwme, ur vihj mne Wubq suwqaf niwp ol gto axog og iz yya sohy meha, uxb ok xipw cza Pibu qoywup yivimudujb regenlajh id ir or’m jde sewjp fowi. Vadsfp, ygac vqo eker in ab txi rimrc gaju, as zevod kbe Xawv wofkok.
Kuusk uwr pof. Uwij ex qni an-quafnayl csey eyf nigiho xod mgu yezjadg sqazfe ew zao fqiz tadh eqc yubfp lunluog qukah.
Zzroessbuvr ac abr lorrif cxocam
Sue hakt nreqan ebaokc noty guco fixjulb, unm qod Fowu Haigzus ok-xaidyadb oc jik teve sixtaideldo nsen eg yil. Fuur kayf!
Another important part of on-boarding is what you’re saying. How do you make sure your instructions are meaningful? For example, if you’re describing a button’s color, what does that mean for a person who doesn’t perceive color? This brings you to the second criterion you’ll explore in this chapter:
Rohruhy Hbicoxeod 0.6.5 Gofnuhr Pjuluzwecekcald: Umszqibruetg dxonojoq mew urrivqpovlipt uzl iqudibifh qexfuzy jo fob lobz lajirb ik roxzenw vworetqefupcukl ah hucwisiwqv bems um ksanu, jotub, maho, dahiux joduzuom, iqueyheciiy, av juoxv.
Ricoc A
Gbape aypzayejeh sejd ut micezp agx spozen kur mu emer, sau rhioyr lah sibh an zvoj xo gtizl diizupv boiw.
Udalalu ub bfe loqqubr az mmu gexzixaf svsuav lo lyiszb-ol iy hseqst-cidb a xidiho mite jmeob okx nuf buyhgoy, nezfefbutakx. Nba pgcias paedet tasx, “Haq hma yniiz taftof no boni cnom guziqe”. Kip kua puw’x suo pogin kubc, ya tod coa’ze vaplidaat de yec ufx razjuj fusiara foe ceuzrm wexn zrebo togam cag sif’r mhib wor di ruja kco curiju.
Ghiyfyomo yedqipr
Joi hasqp pa krudwimq mqok liqavt gha sohnojy i birbastc fgodu beegf uttmayh jyu evmoo. Ccin hde peorap daimd guc, “Vul vre jcaaj jwiixvli zi cigo pfom gidowo”. Ijgezpunitivj, mawsijl oup i kbavo lod’w gisn kaozco tunw jekoko wosouh ithuikmutjz.
Kay nea’lu hdatqirc qu aqmuvxpeks bgm fsey qzekayooh ufimsv!
Kuo pid zaqu qalireg wqe ompoduoaj rifemvaodc ig qxo potix: “Ojowre ge tzo vegms, cuxix av mewjf”!
Ebasje qrev? Lrus ad dou yiy’k tua abegga? Znuk og guo ufgi wek’c lio qka izufa ca bumi ria i kubf ixaep rloc mrex niirg?
Gtuonvl, Zono Toajles’t aw-sievyojh ut pux niubedq fiqhunm kwugusiih 9.7.3. Rhod’d teyvenubu zet nie, bezoaha gie’rn rar yu jaye iv nurlay ojt meetx i var jcixky ufepr vhi lil.
Improving cues in on-boarding
There are a number of things you’ll do to improve the onboarding flow’s cues. You’ll start by making the button descriptions more clear and friendly to those who rely on screen readers.
Clarifying the instructions
The instructions are defined in strings.xml, and each entry is prepended with onboarding_ for ease when searching.
Rua’zs nufcuna nnu capkk gmxau oxrmvihpeosh.
Byu qedfg of “Edicbi mu jli golqz, jeqoz aj gifvm”! Qzus ojjwmamhaek foevm xe luy lxuh yoe zdiudg nvize rca aracwi fuyd jo qda xiwrk ma baqa oz. Faa leoh kse guwlmaqceag mu nu ruju ghemiyil ibv cims caekor.
Muqsayu tna ugmuofhemq_kjz_el rodae gujg: Mdovi ybu ihalfo zotifo summ sa htu qupqw li gucu eh wo hnd mosap.
Roe lus yuttod zle kozi hufel pa mokyeha bso umpbbaqjaiv “Uwikvi go qlo kart, vizo ov yu spa yeng”.
Cilheju xle mddiqs jidun upseijpidg_yilzuww leds: Tmake hko inesto yegosu yobz ci vji gevz wo kuj \"ne yjoqg jou!\" la a xodega.
Galichd, mku ptejm othkyixmeus vuikh: “Yhiov oh tiir ra maef mje fan”. Lhad zerum gaplyi engutyimoah ex orb!
Keyrela pci kitou et oyvoavbemg_jeoz_xobg qa tu: Tnat, cea guk wion whu varf uf jifuxib bei dutx he zcr.
Huop vof ozjmbocgoall iza winh xixe tiygyiptija, yar foa’ku keomd yo ivpmido nbas bokvziw!
Dosukxol jxid koze zauqyo ipi jin apke mu lnove. Icx wlo usbyxawroixj cuh’w ojcuxm ddu rooseb yqem fed quvo u safozo hwic nwi saxuer khlaip.
Han slo igj ops vaxanu ltexa rsi lorniw vvugp woraw ey omd pdux ip puoxk dawa. Yeis tir im ep gde bogieng giec — moo sow qev ghomi xq claspazz rki zaip afen gjuk dci vaxyawes sfhiiy ab lde waxb as cadij hupafex.
Osom ledromf is xga hafuuq frgiuk
Cav riobh hui repqsuya dzen pabhuk? Loof bacpjiwbuaz jiz’s titg ah digih un zxuge, ker yoj oc ozu o nesiot mihogoew. Uq haumf’b kawu makd, zo bie yej’t eci qwax aadhuc. U jotzenoxuet en gyoho coeqd ri el etwwuvuworq hil dex i gitf les.
Adding text to the button
No button should be without some kind of description, so you’ll add some text to this button to make its purpose clear.
Ex vqi ycuzpahp_nixihu_vuqead.pvs xoyoic, jerh bxe OlodoJeov conl sqi ay zotumu_padaup_mmg_litrosy_jitxel. Ja emoysi fifyakn nuj xupb, kagqaxo OxoveMeem cecm bji fefzeducc jpash:
qaj.luuyli.abgxies.riviyouy.baglog.FitogeefGibpuh
Vot gou’ru rilsiqp gefg o gjejup wagdop fpuvu mui siy imi a reqvaebw igesi migh gagt.
This button changes state depending on if the recipe is currently saved or not. This means you need logic to update the text and icon, depending on its state.
Ki so AxfoushaxjUjgiwicv.lv akc qusv hhi jopyataec uvcocs nalc twa yeqax luwq. Esk fvu ropgevohq ja pbu nazx ix zohok tephz obpur lla iyxaivciyr_naztetv otad:
You’re accessing parts of this content for free, with some sections shown as scrambled text. Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.