이미지 작업
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
시계 화면에 이미지를 사용하면 전체 화면 배경 이미지부터 관심을 끄는 개별 세부정보 이미지까지 시계 화면을 더욱 생생하게 표현할 수 있습니다.
이미지 리소스를 res/drawable
폴더(예: res/drawable/face.png
)에 배치한 다음 다음과 같이 이미지를 참조합니다.
<PartImage x="100" y="100" width="250" height="250">
<Image resource="face"/>
</PartImage>
PartImage
요소는 시계 화면 형식의 다른 컨테이너와 마찬가지로 크기 조절, 회전, 변환, 색조 지정, 마스크 적용 등 다양한 방법으로 수정할 수 있습니다.
자세한 내용은 PartImage
참조를 확인하세요.
배경 변경
흥미를 유발할 수 있는 한 가지 효과는 1시간마다 배경을 변경하는 것입니다.
Images
요소를 사용하여 이를 실행할 수 있습니다. 예를 들면 다음과 같습니다.
<PartImage ...>
<Images change="ON_NEXT_HOUR">
<Image resource="background1"/>
<Image resource="background2"/>
...
</Images>
</PartImage>
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[null,null,["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# Work with images\n\nUsing images in your watch face can really help bring it to life, from a\nfull-screen background image to individual detail images to add interest.\n\nPlace your image resources in the `res/drawable` folder, for example\n`res/drawable/face.png`, and then reference the image as follows: \n\n \u003cPartImage x=\"100\" y=\"100\" width=\"250\" height=\"250\"\u003e\n \u003cImage resource=\"face\"/\u003e\n \u003c/PartImage\u003e\n\nThe `PartImage` element, as with other containers in Watch Face Format,\ncan be modified in\nmany ways, including being scaled, rotated, transformed, tinted, or masked.\nSee the [`PartImage`](/training/wearables/wff/group/part/image/part-image) reference for more information.\n\n### Vary the background\n\nOne effect that can provide interest is to change the background every hour.\nThis can be achieved through the use of the `Images` element, for example: \n\n \u003cPartImage ...\u003e\n \u003cImages change=\"ON_NEXT_HOUR\"\u003e\n \u003cImage resource=\"background1\"/\u003e\n \u003cImage resource=\"background2\"/\u003e\n ...\n \u003c/Images\u003e\n \u003c/PartImage\u003e"]]