Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Android TV ma ekranową klawiaturę programową o nazwie Gboard. Klawiatura
obsługuje szeroką gamę funkcji, w tym zamianę mowy na tekst (STT), która pozwala
użytkownicy zabierają głos, a mowa jest automatycznie tłumaczona na tekst.
Ta funkcja działa w Gboard, więc nie musisz prosić o dźwięk.
uprawnień ani wykonywania jakichkolwiek specjalnych czynności w aplikacji.
Metody wprowadzania
Możesz określić typ metody przesyłania.
na Androida TV – dokładnie tak samo jak na urządzeniach mobilnych.
Gboard na Androida TV obsługuje mniejszy zestaw typów urządzeń wejściowych, pokazanych tutaj
następujące dane:
.
Rysunek 1. Typ adresu e-mail.
.
Rysunek 2. Typ wpisanego hasła.
.
Rysunek 3. Typ pola tekstowego.
.
Rysunek 4. Typ danych liczbowych.
Możesz określić co najmniej 1 typ danych wejściowych w zależności od zastosowania
tych kwestii. Gboard automatycznie określa najlepszy układ na podstawie danych wejściowych
określone przez Ciebie typy i obsługiwane przez nie układy.
Miejsce docelowe
Ważną różnicą w Gboard na Androida TV jest możliwość określenia, gdzie:
należy umieścić klawiaturę. Wcześniej klawiatura zakrywała dolną część ekranu.
od krawędzi do krawędzi ekranu, ale aktualizacja Gboard pozwala
unosząc się w powietrzu. Możesz określić, w którym miejscu ma się znajdować klawiatura: w lewo, w prawo lub na środku.
Domyślna pozycja to środek.
Rysunek 5. Opcje wyrównania klawiatury Gboard.
Aby sterować wyrównaniem, ustaw wartość w zakresie privateImeOptions dla parametru
horizontalAlignment Opcje dla opcji horizontalAlignment są domyślne
center, left i right.
Widać to w tym przykładzie:
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-27 UTC."],[],[],null,["# On-screen keyboard\n\nAndroid TV comes with an on-screen software keyboard named Gboard. The keyboard\nsupports a wide range of features, including speech-to-text (STT), which lets\nusers speak and have the speech automatically translated into text for input.\nThis feature works through Gboard, so you don't need to request the audio\npermission or do any special handling in your app.\n\nInput methods\n-------------\n\nYou can [specify the input method type](/training/keyboard-input/style)\nfor Android TV in exactly the same way as you do for mobile, except that\nGboard for Android TV supports a more limited set of input types, shown in\nthe following figures:\n\n|---------------------------------|------------------------------------|\n| **Figure 1.** Email input type. | **Figure 2.** Password input type. |\n| **Figure 3.** Text input type. | **Figure 4.** Numeric input type. |\n\nYou can specify one or more input types based on your use\ncase. Gboard automatically determines the best layout based on the input\ntypes you specify and the layouts it supports.\n\nPlacement\n---------\n\nOne major difference with Gboard for Android TV is the ability to specify where\nthe keyboard should be placed. Previously, the keyboard covered the bottom\nportion of the screen from edge to edge, but an update to Gboard lets it\nfloat. You can specify where the keyboard should go: left, right, or center.\nThe default position is in the center.\n**Figure 5.** Gboard alignment options.\n\nTo control the alignment, set the value within `privateImeOptions` for\n`horizontalAlignment`. The options for `horizontalAlignment` are the default\n`center`, `left`, and `right`.\nThis is shown in the following example: \n\n```xml\n\u003cEditText\n android:layout_width=\"match_parent\"\n android:layout_height=\"wrap_content\"\n android:imeOptions=\"actionNext\"\n android:privateImeOptions=\"horizontalAlignment=right\"\u003e\n```\n\nThis example results in the keyboard being placed at the bottom right, which works well\nwhen you have input fields aligned to the right:\n**Figure 6.** Gboard aligned to the right.\n\nSupported languages\n-------------------\n\nGboard for Android TV supports many different languages. The list of languages\nincludes the following:\n\n- English---US\n- English---Australia\n- English---Canada\n- English---UK\n- Afrikaans\n- Albanian\n- Arabic\n- Bengali\n- Bulgarian\n- Burmese\n- Chinese---Hong Kong\n- Chinese---Simplified\n- Chinese---Traditional\n- Croatian\n- Czech\n- Danish\n- Dutch---Belgium\n- Dutch---Nederlands\n- Estonian\n- Farsi\n- Filipino\n- Finnish\n- French\n- French---Belgium\n- French---Canada\n- French---Switzerland\n- German\n- German---Austria\n- German---Belgium\n- German---Switzerland\n- Greek\n- Hebrew\n- Hindi\n- Hindi---transliteration\n- Hungarian\n- Indonesian\n- Irish\n- Italian\n- Italian---Switzerland\n- Japanese---Japan\n- Korean\n- Lithuanian\n- Macedonian\n- Malay\n- Norwegian---Bokmål\n- O'zbek\n- Polish\n- Portuguese\n- Punjabi\n- Romanian\n- Russian\n- Serbian\n- Slovakian\n- Slovenian\n- Spanish---Mexico\n- Spanish---Spain\n- Swedish\n- Thai\n- Turkish\n- Ukrainian\n- Urdu\n- Vietnamese"]]