با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Android TV دارای یک صفحه کلید نرم افزاری روی صفحه به نام Gboard است. این صفحهکلید از طیف گستردهای از ویژگیها، از جمله گفتار به متن (STT) پشتیبانی میکند، که به کاربران اجازه میدهد صحبت کنند و گفتار را به صورت خودکار به متن برای ورودی ترجمه کنند. این ویژگی از طریق Gboard کار میکند، بنابراین نیازی به درخواست مجوز صوتی یا انجام کار خاصی در برنامه خود ندارید.
شما می توانید یک یا چند نوع ورودی را بر اساس مورد استفاده خود مشخص کنید. Gboard به طور خودکار بهترین طرحبندی را بر اساس انواع ورودی که مشخص میکنید و طرحبندیهایی که پشتیبانی میکند، تعیین میکند.
قرار دادن
یکی از تفاوت های عمده با Gboard برای Android TV، توانایی تعیین مکان قرارگیری صفحه کلید است. پیش از این، صفحه کلید قسمت پایین صفحه را از لبه به لبه می پوشاند، اما به روز رسانی Gboard به آن اجازه شناور می دهد. می توانید مشخص کنید که صفحه کلید باید کجا برود: چپ، راست یا وسط. موقعیت پیش فرض در مرکز است.
شکل 5. گزینه های تراز Gboard.
برای کنترل تراز، مقدار را در privateImeOptions برای horizontalAlignment تنظیم کنید. گزینه های horizontalAlignment عبارتند از center پیش فرض، left و right . این در مثال زیر نشان داده شده است:
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[],[],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"]]