question |
réponse |
You have learned that to make a view interactive you need to set up a click listener for the view which says what to do when the view (button) is clicked on. commencer à apprendre
|
|
Nauczyłeś się, że aby widok był interaktywny, musisz skonfigurować odbiornik kliknięć dla tego widoku, który mówi, co zrobić, gdy kliknięty zostanie widok (przycisk).
|
|
|
The click listener can either: commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
Cache the TextView for repeated use commencer à apprendre
|
|
Buforuj TextView do wielokrotnego użytku
|
|
|
commencer à apprendre
|
|
|
|
|
relatively time consuming commencer à apprendre
|
|
|
|
|
However, countMe() is called every time the button is clicked, and findViewById() is a relatively time consuming method to call. So it is better to find the view once and cache it. commencer à apprendre
|
|
Jednak funkcja countMe () jest wywoływana za każdym razem, gdy przycisk zostanie kliknięty, a findViewById () jest stosunkowo czasochłonną metodą wywoływania. Lepiej więc raz znaleźć widok i zapisać go w pamięci podręcznej.
|
|
|
commencer à apprendre
|
|
|
|
|
So it is better to find the view once and cache it. commencer à apprendre
|
|
Lepiej więc raz znaleźć widok i zapisać go w pamięci podręcznej.
|
|
|
commencer à apprendre
|
|
|
|
|
How to pass information to a second fragment. commencer à apprendre
|
|
Jak przekazać informacje do drugiego fragmentu.
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
The %d indicates that part of the string will be replaced with a number. The R is just a placeholder. commencer à apprendre
|
|
% D wskazuje, że część ciągu zostanie zastąpiona liczbą. R jest tylko symbolem zastępczym.
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
Nationalists renew criticism of Moscow’s handling of disaster which killed president and other senior politicians and military officers commencer à apprendre
|
|
Nacjonaliści ponawiają krytykę radzenia sobie przez Moskwę z katastrofą, w wyniku której zginął prezydent oraz inni starsi politycy i oficerowie wojskowi
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
Liquid smoke is a water-soluble yellow to red liquid used for flavoring. commencer à apprendre
|
|
Płynny dym to rozpuszczalny w wodzie żółty lub czerwony płyn stosowany do aromatyzowania.
|
|
|
It is used as a substitute for cooking with wood smoke while retaining a similar flavor. commencer à apprendre
|
|
Jest stosowany jako substytut gotowania z dymem drzewnym, zachowując podobny smak.
|
|
|
It can be used to flavor any meat or vegetable. It is generally made by condensing the smoke from wood, but can contain any number of food additives. commencer à apprendre
|
|
Może być stosowany do aromatyzowania dowolnego mięsa lub warzyw. Na ogół jest wytwarzany przez kondensację dymu z drewna, ale może zawierać dowolną liczbę dodatków do żywności.
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
Wzorzec projektowania oprogramowania
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
an object receives other objects that it depends on commencer à apprendre
|
|
obiekt otrzymuje inne obiekty, od których zależy
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
the receiving object is called commencer à apprendre
|
|
obiekt odbierający jest nazywany
|
|
|
passed (that is, "injected") object passed (that is, "injected") object commencer à apprendre
|
|
obiekt przekazany (to znaczy „wstrzyknięty”) obiekt przekazany (to znaczy „wstrzyknięty”)
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
The intent behind dependency injection is to achieve Separation of Concerns of construction and use of objects. commencer à apprendre
|
|
Celem iniekcji zależności jest osiągnięcie separacji obaw dotyczących budowy i użytkowania obiektów.
|
|
|
commencer à apprendre
|
|
|
|
|
Separation of concerns (SoC) commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
commencer à apprendre
|
|
|
|
|
Interface injection comparison commencer à apprendre
|
|
Porównanie wtrysku interfejsu
|
|
|