Domanda |
Risposta |
inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|
How to constrain the position of a view to another view. inizia ad imparare
|
|
Jak ograniczyć pozycję widoku do innego widoku.
|
|
|
inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|
Notice that the blueprint and design views also show the constraints when a particular view is selected. inizia ad imparare
|
|
Zauważ, że widoki planu i projektu pokazują również ograniczenia, gdy wybrany jest określony widok.
|
|
|
inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|
Some of the constraints are jagged lines, but the one to the Next button is a squiggle, because it's a little different. inizia ad imparare
|
|
Niektóre ograniczenia są postrzępionymi liniami, ale przycisk do przycisku Dalej jest zawijas, ponieważ jest nieco inny.
|
|
|
inizia ad imparare
|
|
|
|
|
To learn how to use constraints to connect the positions of views to each other, you will add buttons to the layout. inizia ad imparare
|
|
Aby dowiedzieć się, jak używać wiązań do łączenia pozycji widoków ze sobą, dodasz przyciski do układu.
|
|
|
inizia ad imparare
|
|
|
|
|
Before adding another button, relabel this button inizia ad imparare
|
|
Przed dodaniem kolejnego przycisku ponownie oznacz ten przycisk
|
|
|
inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|
Notice that the text "Button" is directly in the layout field, instead of referencing a string resource as the TextView does. inizia ad imparare
|
|
Zauważ, że tekst „Przycisk” znajduje się bezpośrednio w polu układu, zamiast odwoływania się do zasobu ciągów, tak jak robi to TextView.
|
|
|
inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|
A light bulb appears on the left. inizia ad imparare
|
|
Żarówka pojawia się po lewej stronie.
|
|
|
inizia ad imparare
|
|
|
|
|
Run the app to make sure it displays as you expect it to. inizia ad imparare
|
|
Uruchom aplikację, aby upewnić się, że wyświetla się zgodnie z oczekiwaniami.
|
|
|
inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|
The id for a view helps you identify that view distinctly from other views. inizia ad imparare
|
|
Identyfikator widoku pomaga w odróżnieniu tego widoku od innych widoków.
|
|
|
If you get a dialog box asking to update all usages of the button, click Yes. inizia ad imparare
|
|
Jeśli pojawi się okno dialogowe z prośbą o zaktualizowanie wszystkich zastosowań przycisku, kliknij przycisk Tak.
|
|
|
Your final layout will have three buttons, vertically constrained the same, and evenly spaced from each other. inizia ad imparare
|
|
Twój ostateczny układ będzie miał trzy przyciski, takie same w pionie i równomiernie rozmieszczone.
|
|
|
Examine the XML code for fra. xml inizia ad imparare
|
|
Sprawdź kod XML dla fra. xml
|
|
|
inizia ad imparare
|
|
|
|
|
The "bias" constraints allows you to tweak the position of a view to be more on one side than the other when both sides are constrained in opposite directions. inizia ad imparare
|
|
Ograniczenia „stronniczości” pozwalają dostosować pozycję widoku tak, aby był bardziej z jednej strony niż z drugiej, gdy obie strony są ograniczone w przeciwnych kierunkach.
|
|
|
inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|
inizia ad imparare
|
|
|
|
|
First you will make the Toast button show a pop-up message called a toast. inizia ad imparare
|
|
Najpierw sprawisz, że przycisk Toast wyświetli komunikat wyskakujący o nazwie toast.
|
|
|
Add unambiguous Imports on the fly inizia ad imparare
|
|
Dodaj jednoznaczny import w locie
|
|
|
inizia ad imparare
|
|
|
|
|