با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
ما بازخوردهایی شنیده ایم که توسعه دهندگان می خواهند در اسرع وقت به ویژگی های هوش مصنوعی در کانال های پایدار دسترسی داشته باشند. اکنون میتوانید آخرین ویژگیهای آزمایشی هوش مصنوعی را از طریق منوی Studio Labs در منوی تنظیمات که با انتشار پایدار Narwhal شروع میشود، کشف و امتحان کنید.
میتوانید اولین نگاهی به آزمایشهای هوش مصنوعی داشته باشید، بازخورد خود را به اشتراک بگذارید و به ما کمک کنید تا آنها را به IDE که هر روز استفاده میکنید وارد کنیم. به تب Studio Labs در تنظیمات بروید و ویژگی هایی را که می خواهید شروع به استفاده کنید فعال کنید. این ویژگیهای هوش مصنوعی بهطور خودکار در نسخههای قناری فعال میشوند و هیچ اقدامی لازم نیست.
ویژگی های هوش مصنوعی در Studio Labs
ویژگی های Studio Labs
ساخت پیش نمایش با Gemini
Gemini میتواند بهطور خودکار کد پیشنمایش Jetpack Compose را ایجاد کند و در وقت و تلاش شما صرفهجویی کند. میتوانید با کلیک راست در یک فایل composable و رفتن به Gemini > Generate Compose Preview یا Generate Compose Preview برای این فایل ، یا با کلیک کردن روی پیوند در پانل پیشنمایش خالی، به این ویژگی دسترسی پیدا کنید. کد پیشنمایش تولید شده در یک نمای متفاوت ارائه میشود که به شما امکان میدهد به سرعت پیشنهادات را بپذیرید، ویرایش کنید یا رد کنید، و راه سریعتری برای تجسم ترکیبپذیرهایتان ارائه میدهد.
نوشتن نسل پیش نمایش با Gemini
تغییر رابط کاربری با Gemini
کد UI را در محیط Compose Preview با استفاده از زبان طبیعی به طور مستقیم در پیش نمایش تغییر دهید. برای استفاده از آن، روی Compose Preview کلیک راست کرده و Transform UI With Gemini را انتخاب کنید. سپس درخواستهای زبان طبیعی خود را وارد کنید، مانند «این دکمهها را تراز وسط قرار دهید» تا Gemini را در تنظیم چیدمان یا استایل خود راهنمایی کنید، یا برای زمینه بهتر، عناصر رابط کاربری خاصی را در پیشنمایش انتخاب کنید. سپس Gemini کد UI Compose شما را در جای خود ویرایش میکند، که میتوانید آن را بررسی و تأیید کنید و گردش کار توسعه UI را سرعت بخشد. برای کسب اطلاعات بیشتر، به Transform UI مراجعه کنید.
دسترسی به منوی "Transform UI with Gemini".
اعمال تبدیل زبان طبیعی به پیش نمایش Compose
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-09-02 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-09-02 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# AI features in Studio Labs\n\nWe've heard feedback that developers want to access AI features in stable\nchannels as soon as possible. You can now discover and try out the latest AI\nexperimental features through the **Studio Labs** menu in the Settings menu\nstarting with Narwhal stable release.\n\nYou can get a first look at AI experiments, share your feedback, and help us\nbring them into the IDE you use everyday. Go to the Studio Labs tab in Settings\nand enable the features you would like to start using. These AI features are\nautomatically enabled in canary releases and no action is required.\nAI features in Studio Labs\n\nStudio Labs features\n--------------------\n\n### Compose preview generation with Gemini\n\nGemini can automatically generate Jetpack Compose preview code saving you\ntime and effort. You can access this feature by right-clicking within a\ncomposable and navigating to **Gemini \\\u003e Generate Compose Preview** or\n**Generate Compose Preview for this file**, or by clicking the link in an\nempty preview panel. The generated preview code is presented in a diff view\nthat lets you to quickly accept, edit, or reject the suggestions, providing\na faster way to visualize your composables.\nCompose Preview generation with Gemini\n\n### Image attachment in Gemini\n\nYou can now attach image files and provide additional information along with\nyour prompt. For example: you can attach UI mock-ups or screenshots to tell\nGemini context about your app's layout. Consequently, Gemini can generate\nCompose code based on a provided image, or explain the composables and data flow\nof a UI screenshot. To learn more, see\n[Attach an image to your query](/studio/gemini/attach-image).\nImage attachment \\& preview generation using Gemini in Android Studio\n\n### @File context in Gemini\n\nYou can now attach your project files as context in chat interactions with\nGemini in Android Studio. This lets you quickly reference files in your prompts\nfor Gemini. In the Gemini chat input, type `@` to bring up a file completion\nmenu and select files to attach. You can also click the **Context** drop-down to\nsee which files were automatically attached by Gemini. This gives you more\ncontrol over the context sent to Gemini. To learn more, see\n[Attach a file to your query](/studio/gemini/attach-file).\n@File context in Gemini\n\n### Transform UI with Gemini\n\nTransform UI code within the Compose Preview environment using natural language\ndirectly in the preview. To use it, right-click in the Compose Preview and\nselect **Transform UI With Gemini** . Then enter your natural language requests,\nsuch as \"Center align these buttons,\" to guide Gemini in adjusting your layout\nor styling, or select specific UI elements in the preview for better context.\nGemini will then edit your Compose UI code in place, which you can review and\napprove, speeding up the UI development workflow. To learn more, see\n[Transform UI](/studio/gemini/transform-ui).\n\n|-------------------------------------------|-----------------------------------------------------------------|\n| Accessing 'Transform UI with Gemini' menu | Applying a natural language transformation to a Compose preview |"]]