Android 스튜디오의 Gemini는 Jetpack Compose를 사용하고 Android 권장사항을 준수하여 Android 앱 UI 비전을 현실로 만들 수 있도록 지원하는 고유한 기능을 갖추고 있습니다.
이 페이지에서는 Gemini로 앱 UI를 만드는 일반적인 단계를 설명합니다. 이미지 첨부 및 이 기능을 사용하는 기타 아이디어에 대한 자세한 내용은 질문에 이미지 첨부하기를 참고하세요.
Gemini로 UI를 생성하려면 다음 일반 단계를 따르세요.
원하는 앱 UI의 모형을 만듭니다. 와이어프레임이나 기본 디자인이 가장 적합합니다. 디자인 도구에서 PNG를 내보내거나 손으로 그린 이미지를 사용할 수도 있습니다.
이미지 파일 첨부를 클릭하여 이미지를 질문에 첨부합니다.
채팅 필드에서 Gemini에게 UI 코드를 생성해 달라고 요청합니다(예: '제공된 이미지의 Jetpack Compose 코드를 생성해 줘'). 쿼리와 이미지를 제출하면 Gemini가 제안된 UI를 만드는 코드를 추천합니다. Gemini는 일반적으로 Compose 미리보기의 코드도 제공하므로 프로젝트로 가져온 후 UI를 빠르게 시각화할 수 있습니다. 그렇지 않은 경우 Compose 미리보기를 생성하도록 요청하세요.
코드를 가져와 미리보기 패널에서 Compose 미리보기를 볼 수 있게 되면 미리보기를 직접 클릭하고 Gemini에 변환을 요청하여 UI를 반복할 수 있습니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-31(UTC)
[[["이해하기 쉬움","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-31(UTC)"],[],[],null,["# Generate UI with image attachments\n\n| **Preview:** Enable image attachment through [Studio Labs](/studio/gemini/attach-image).\n| **Note:** Image attachment is currently available in Gemini's no-cost tier.\n\nGemini in Android Studio is uniquely equipped to help you make your Android app\nUI vision a reality, using Jetpack Compose and following Android best practices.\nThis page describes the general steps to creating an app UI with Gemini. For\nmore information about image attachment and other ideas for how to use the\nfeature, see [Attach an image to your query](/studio/gemini/attach-image).\n\nTo generate a UI with Gemini, follow these general steps:\n\n1. Create a mockup of the app UI that you want. A wireframe or basic design\n works best. You can export a PNG from a design tool or even use a hand drawn\n image.\n\n2. Attach the image to your query by clicking **Attach image file**\n .\n\n3. In the chat field, ask Gemini to generate the UI code, for example \"Generate\n Jetpack Compose code for the image provided.\" When you submit the query and\n image, Gemini suggests code to create the proposed UI. Gemini usually\n provides the code for the\n [Compose preview](/develop/ui/compose/tooling/previews) too, so you can\n quickly visualize the UI once you import the into your project---if it doesn't,\n ask it to\n [generate Compose the previews](/studio/gemini/generate-compose-previews).\n\n4. Once you import the code and can see the Compose preview in the preview\n panel, you can iterate on the UI by clicking directly on the preview and\n [asking Gemini to transform it](/studio/gemini/transform-ui)."]]