All language subtitles for 017 Text to Images_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian Download
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,900 --> 00:00:06,420 In the last section, we added in a tiny bit of logic to our item bill, their function, I've started 2 00:00:06,420 --> 00:00:09,870 up my emulator and it looks like I don't have any airs or anything like that. 3 00:00:09,870 --> 00:00:11,640 So I'm going to try to press the button right here. 4 00:00:12,030 --> 00:00:16,440 As soon as I press the button, we're going to make a request over to that images API. 5 00:00:16,890 --> 00:00:18,150 We're going to fetch some JSON. 6 00:00:18,480 --> 00:00:24,390 We're going to add it to our list of images right here that's going to update our item count for the 7 00:00:24,390 --> 00:00:24,920 list view. 8 00:00:25,140 --> 00:00:30,990 So this view is going to try to build a number of items equal to the images that we have inside of our 9 00:00:30,990 --> 00:00:31,650 image list. 10 00:00:32,430 --> 00:00:34,740 Then the item builder is going to be called many times. 11 00:00:35,010 --> 00:00:40,170 And each time we're going to look inside of our image list, pull image model out of there and reference 12 00:00:40,170 --> 00:00:41,730 the property on it. 13 00:00:42,060 --> 00:00:48,060 So with that in mind, I'll go back over to my emulator and if I click on the plus button, I start 14 00:00:48,060 --> 00:00:52,980 to see the URLs appearing and you'll notice that there's a little bit of a delay in there. 15 00:00:53,010 --> 00:00:58,290 Like when I press the button, it takes some minutes for the URL to actually appear on the screen, 16 00:00:58,620 --> 00:01:01,360 and that's actually completely to be expected. 17 00:01:01,890 --> 00:01:07,110 Remember, whenever we go to get the fetch that image, we are making a network request and that takes 18 00:01:07,110 --> 00:01:09,050 some amount of time to accomplish. 19 00:01:09,360 --> 00:01:14,750 So that's why you're seeing that little delay in there as we go out and try to fetch the image, OK? 20 00:01:14,820 --> 00:01:15,840 So that looks pretty good. 21 00:01:16,530 --> 00:01:20,640 But showing the Urals on the screen, definitely not that interesting. 22 00:01:21,210 --> 00:01:26,040 So let's take a look at some documentation again and see if we can't figure out how to take the you 23 00:01:26,040 --> 00:01:26,910 are right here. 24 00:01:27,090 --> 00:01:32,640 And rather than showing the URL as a text, let's try to fetch the actual image that that URL points 25 00:01:32,640 --> 00:01:34,830 at and show the image on the screen instead. 26 00:01:36,660 --> 00:01:38,850 So I'm going to pull up my floater documentation again. 27 00:01:39,840 --> 00:01:45,000 And I'm going to search for image and find the image class right here. 28 00:01:49,240 --> 00:01:54,130 Now, on the image class, documentation right here at the top is exactly what we're looking for. 29 00:01:54,250 --> 00:01:59,620 So there's several different name constructors that are given to us as a part of this image class that 30 00:01:59,620 --> 00:02:02,180 allow us to show images from different sources. 31 00:02:02,830 --> 00:02:07,390 So in some cases, we get the ability to show an image from an asset bundle. 32 00:02:07,780 --> 00:02:12,670 An asset bundle is an image that is bundled in with our actual application. 33 00:02:13,330 --> 00:02:20,260 We can show an image from a file or show a raw image from the list of integers or for what we're trying 34 00:02:20,260 --> 00:02:23,800 to do, show a image from a year earlier. 35 00:02:24,640 --> 00:02:30,510 So in order to show an image on the screen, we have to create a new image dot network widget. 36 00:02:31,390 --> 00:02:32,620 So I'm going to flip back over. 37 00:02:33,340 --> 00:02:38,440 And now, rather than showing a text right here, I'm going to try to create a new instance of. 38 00:02:39,440 --> 00:02:40,010 Image. 39 00:02:40,890 --> 00:02:42,840 DOT network like so. 40 00:02:45,650 --> 00:02:48,560 So I'll save this, I'm going to. 41 00:02:49,650 --> 00:02:52,260 Refresh my terminal again or refresh my application. 42 00:02:54,680 --> 00:02:56,750 We're going to wait a couple of seconds for the restart. 43 00:03:00,560 --> 00:03:03,950 There we go, and now when I click plus right here. 44 00:03:04,910 --> 00:03:10,160 We reach out to fetch our image and then show that image on the screen, and as I start to click on 45 00:03:10,160 --> 00:03:16,850 this, I'm adding more and more images to my list so I can keep clicking and I get more images showing 46 00:03:16,850 --> 00:03:17,150 up. 47 00:03:18,040 --> 00:03:23,760 Until I eventually hit the bottom, at which point I can hit plus again and get another image, awesome. 48 00:03:23,770 --> 00:03:28,960 So it looks like we're definitely making some progress, but our application still does not quite match 49 00:03:28,960 --> 00:03:29,610 our makeup. 50 00:03:30,190 --> 00:03:37,060 So remember, on our makeup, we had shown the image on here on kind of like a card, sort of rectangular 51 00:03:37,060 --> 00:03:37,690 looking thing. 52 00:03:38,170 --> 00:03:43,690 And underneath it, we wanted to show the title of each image because each image does have a title. 53 00:03:44,570 --> 00:03:48,280 It's just a random jumble of words, but I think we still want to show the title on there. 54 00:03:48,290 --> 00:03:51,310 So like the first image has this Latin phrase right here. 55 00:03:51,710 --> 00:03:53,210 So we still have a little bit of work to do. 56 00:03:53,450 --> 00:03:55,430 Let's take a break and come back in the next section. 5578

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.