[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],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"]]