Compose 미리보기는 Android 스튜디오에서 디자인 시 컴포저블을 시각화하는 강력한 도구이지만 미리보기 매개변수의 모의 데이터를 수동으로 설정하는 데 시간이 오래 걸릴 수 있습니다. Android 스튜디오의 Gemini에는 이 문제를 해결하는 기능인 자동 Compose 미리보기 생성이 포함되어 있습니다.
이 도구는 다음 두 가지 방법으로 액세스할 수 있습니다.
컴포저블 내에서 마우스 오른쪽 버튼을 클릭하고 Gemini > '<컴포저블>' 미리보기 생성 또는 이 파일의 Compose 미리보기 생성으로 이동합니다.
아직 설정된 미리보기가 없으면 빈 미리보기 패널에서 이 파일의 Compose 미리보기 자동 생성을 클릭합니다.
Gemini에 Compose 미리보기를 생성해 달라고 요청하면 Gemini가 제안한 Compose 미리보기 코드가 포함된 차이 보기가 표시되며, 여기서 제안된 변경사항을 수락하거나 거부할 수 있습니다. Gemini의 코드는 개발 워크플로를 가속화하는 데 유용한 시작점을 제공해야 합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 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 Compose previews\n\n| **Preview:** Enable Compose preview generation through [Studio Labs](/studio/gemini/labs).\n\n[Compose previews](/develop/ui/compose/tooling/previews) are a powerful tool for\nvisualizing composables at design time in Android Studio, but manually setting\nup mock data for the preview parameters can be time-consuming. Gemini in Android\nStudio includes a feature that solves this problem: automated Compose preview\ngeneration.\n\nYou can access this tool in two ways:\n\n- Within any composable, right-click and navigate to **Gemini \\\u003e Generate\n \"\\\u003ccomposable\\\u003e\" Preview** or **Generate Compose Previews for this file**.\n\n | **Note:** You only see the option to generate Compose previews for the whole file if there are multiple composables in the file that don't have associated previews.\n\n- If you don't have any previews set up yet, in the empty preview panel click\n **Auto-generate Compose Previews for this file**.\n\nWhen you ask Gemini to generate Compose previews, you get a diff view with\nGemini's suggested Compose preview code where you can accept or reject the\nproposed changes. Gemini's code should provide a valuable starting point to\naccelerate your development workflow."]]