Android 14에는 개발자를 위한 훌륭한 기능과 API가 도입되었습니다. 다음은 앱의 기능을 알아보고 관련 API를 시작하는 데 도움이 됩니다.
추가된 API, 수정된 API, 삭제된 API에 관한 자세한 목록은 API 차이점 보고서를 참고하세요. 추가된 API에 관한 자세한 내용은 Android API 참조를 참고하세요. Android 14의 경우 API 수준 34에 추가된 API를 찾아보세요. 플랫폼 변경이 앱에 영향을 줄 수 있는 분야에 관해 알아보려면 Android 14를 타겟팅하는 앱 및 모든 앱의 Android 14 동작 변경사항을 확인해야 합니다.
다국어 지원
앱별 언어 설정
Android 14에서는 Android 13(API 수준 33)에서 도입된 앱별 언어 기능을 다음과 같은 추가 기능으로 확장합니다.
앱의
localeConfig
자동으로 생성: Android 스튜디오 Giraffe Canary 7 및 AGP 8.1.0-alpha07부터 앱이 앱별 언어 설정을 자동으로 지원하도록 구성할 수 있습니다. Android Gradle 플러그인은 프로젝트 리소스를 기반으로LocaleConfig
파일을 생성하고 최종 매니페스트 파일에 이에 대한 참조를 추가하므로 더 이상 수동으로 파일을 만들거나 업데이트할 필요가 없습니다. AGP는 앱 모듈의res
폴더에 있는 리소스 및 모든 라이브러리 모듈 종속 항목을 사용하여LocaleConfig
파일에 포함할 언어를 결정합니다.앱의
localeConfig
동적 업데이트:LocaleManager
에서setOverrideLocaleConfig()
및getOverrideLocaleConfig()
메서드를 사용하여 기기의 시스템 설정에서 앱의 지원되는 언어 목록을 동적으로 업데이트합니다. 앱에서 현지화에 서버 측 푸시를 활용하는 경우 이러한 유연성을 사용하여 지역별 지원되는 언어 목록을 맞춤설정하거나 A/B 실험을 실행하거나 업데이트된 언어 목록을 제공합니다.입력 방식 편집기(IME)의 앱 언어 공개 상태: IME는
getApplicationLocales()
메서드를 활용하여 현재 앱의 언어를 확인하고 IME 언어를 해당 언어와 일치시킬 수 있습니다.
Grammatical Inflection API
30억 명의 사용자가 성별이 지정된 언어를 사용합니다. 이 언어는 이야기하는 사람과 사물의 성별에 따라 문법적 카테고리(예: 명사, 동사, 형용사, 전치사)가 영향을 받는 언어입니다. 일반적으로 성별이 지정된 많은 언어에서 남성형 문법적 성별을 기본 성별이나 일반 성별로 사용합니다.
여성을 남성형 문법적 성별로 언급하는 등 잘못된 문법적 성별로 사용자를 언급하면 사용자의 실적과 태도에 부정적인 영향을 미칠 수 있습니다. 반면 사용자의 문법적 성별을 올바르게 반영하는 언어로 된 UI는 사용자 참여를 개선하고 보다 맞춤설정되고 자연스러운 사용자 환경을 제공할 수 있습니다.
To help you build a user-centric UI for gendered languages, Android 14 introduces the Grammatical Inflection API, which lets you add support for grammatical gender without refactoring your app.
지역 설정
지역 설정을 통해 사용자는 온도 단위, 한 주의 첫째 날, 번호 매기기 시스템을 맞춤설정할 수 있습니다. 미국에 거주하는 유럽인은 온도 단위로 화씨보다 섭씨를 선호하고, 앱이 미국의 기본값인 일요일이 아닌 월요일을 한 주의 시작으로 간주하는 것을 선호할 수 있습니다.
이러한 환경설정에 관한 새로운 Android 설정 메뉴는 사용자에게 앱 환경설정을 변경할 수 있는 쉽게 검색 가능한 중앙 집중식 위치를 제공합니다. 이러한 환경설정은 백업 및 복원에도 유지됩니다. 여러 API 및 인텐트(예: getTemperatureUnit
및 getFirstDayOfWeek
)는 앱에 사용자 환경설정에 대한 읽기 액세스 권한을 부여하므로 앱에서 정보를 표시하는 방식을 조정할 수 있습니다. ACTION_LOCALE_CHANGED
에 BroadcastReceiver
를 등록하여 지역 설정이 변경될 때 언어 구성 변경을 처리할 수도 있습니다.
이러한 설정을 찾으려면 설정 앱을 열고 시스템 > 언어 및 입력 > 지역 설정으로 이동하세요.


접근성
비선형 글꼴 크기 200%로 조정
Starting in Android 14, the system supports font scaling up to 200%, providing low-vision users with additional accessibility options that align with Web Content Accessibility Guidelines (WCAG).
To prevent large text elements on screen from scaling too large, the system applies a nonlinear scaling curve. This scaling strategy means that large text doesn't scale at the same rate as smaller text. Nonlinear font scaling helps preserve the proportional hierarchy between elements of different sizes while mitigating issues with linear text scaling at high degrees (such as text being cut off or text that becomes harder to read due to an extremely large display sizes).
Test your app with nonlinear font scaling

If you already use scaled pixels (sp) units to define text sizing, then these additional options and scaling improvements are applied automatically to the text in your app. However, you should still perform UI testing with the maximum font size enabled (200%) to ensure that your app applies the font sizes correctly and can accommodate larger font sizes without impacting usability.
To enable 200% font size, follow these steps:
- Open the Settings app and navigate to Accessibility > Display size and text.
- For the Font size option, tap the plus (+) icon until the maximum font size setting is enabled, as shown in the image that accompanies this section.
Use scaled pixel (sp) units for text-sizes
Remember to always specify text sizes in sp units. When your app uses sp units, Android can apply the user's preferred text size and scale it appropriately.
Don't use sp units for padding or define view heights assuming implicit padding: with nonlinear font scaling sp dimensions might not be proportional, so 4sp + 20sp might not equal 24sp.
Convert scaled pixel (sp) units
Use TypedValue.applyDimension()
to convert from sp units
to pixels, and use TypedValue.deriveDimension()
to
convert pixels to sp. These methods apply the appropriate nonlinear scaling
curve automatically.
Avoid hardcoding equations using
Configuration.fontScale
or
DisplayMetrics.scaledDensity
. Because font scaling is
nonlinear, the scaledDensity
field is no longer accurate. The fontScale
field should be used for informational purposes only because fonts are no longer
scaled with a single scalar value.
Use sp units for lineHeight
Always define android:lineHeight
using sp units instead
of dp, so the line height scales along with your text. Otherwise, if your text
is sp but your lineHeight
is in dp or px, it doesn't scale and looks cramped.
TextView automatically corrects the lineHeight
so that your intended
proportions are preserved, but only if both textSize
and lineHeight
are
defined in sp units.
카메라 및 미디어
이미지용 울트라 HDR

Android 14에서는 사진을 찍을 때 센서의 정보를 더 많이 유지하여 생생한 색상과 더 높은 대비를 제공하는 HDR (High Dynamic Range) 이미지를 지원합니다. Android는 JPEG 이미지와 완전히 하위 호환되는 울트라 HDR 형식을 사용하므로 앱이 HDR 이미지와 원활하게 상호 운용하여 필요에 따라 표준 동적 범위 (SDR)로 표시할 수 있습니다.
앱이 매니페스트 항목을 통해 또는 런타임에 Window.setColorMode()
호출을 통해 활동 창에 HDR UI를 사용하도록 선택하면 UI에서 이러한 이미지를 HDR로 렌더링하는 작업은 프레임워크에서 자동으로 실행됩니다. 지원되는 기기에서 압축된 울트라 HDR 스틸 이미지를 캡처할 수도 있습니다. 센서에서 더 많은 색상을 복구하면 후반 작업에서 더 유연하게 수정할 수 있습니다. 울트라 HDR 이미지와 연결된 Gainmap
를 사용하여 OpenGL 또는 Vulkan을 사용하여 렌더링할 수 있습니다.
카메라 확장 프로그램의 확대/축소, 초점, Postview 등
Android 14에서는 카메라 확장 프로그램을 업그레이드하고 개선하여 앱이 더 긴 처리 시간을 처리할 수 있도록 지원합니다. 이를 통해 지원되는 기기에서 저조도 사진과 같은 컴퓨팅 집약적인 알고리즘을 사용하여 이미지를 개선할 수 있습니다. 이러한 기능을 통해 사용자는 카메라 확장 기능을 사용할 때 더욱 강력한 환경을 경험할 수 있습니다. 이러한 개선사항의 예는 다음과 같습니다.
- 동적 스틸 캡처 처리 지연 시간 추정치는 현재 장면과 환경 조건을 기반으로 훨씬 더 정확한 스틸 캡처 지연 시간 추정치를 제공합니다.
CameraExtensionSession.getRealtimeStillCaptureLatency()
를 호출하여 지연 시간 추정 메서드가 두 개인StillCaptureLatency
객체를 가져옵니다.getCaptureLatency()
메서드는onCaptureStarted
와onCaptureProcessStarted()
간의 예상 지연 시간을 반환하고getProcessingLatency()
메서드는onCaptureProcessStarted()
와 사용 가능한 최종 처리된 프레임 간의 예상 지연 시간을 반환합니다. - 앱이 장기 실행 스틸 캡처 처리 작업의 현재 진행 상황을 표시할 수 있도록 캡처 진행 상황 콜백을 지원합니다.
CameraExtensionCharacteristics.isCaptureProcessProgressAvailable
에서 이 기능을 사용할 수 있는지 확인할 수 있으며, 사용할 수 있는 경우 진행률 (0~100)이 매개변수로 전달되는onCaptureProcessProgressed()
콜백을 구현합니다. 확장 프로그램별 메타데이터(예:
CaptureRequest.EXTENSION_STRENGTH
:EXTENSION_BOKEH
를 사용하여 배경 흐리게 처리의 양과 같은 확장 프로그램 효과의 양을 조정하는 데 사용)카메라 확장 프로그램의 스틸 캡처를 위한 포스트뷰 기능으로, 최종 이미지보다 처리가 덜된 이미지를 더 빠르게 제공합니다. 확장 프로그램의 처리 지연 시간이 늘어난 경우 UX를 개선하기 위해 포스트뷰 이미지를 자리표시자로 제공하고 나중에 최종 이미지로 전환할 수 있습니다.
CameraExtensionCharacteristics.isPostviewAvailable
를 사용하여 이 기능을 사용할 수 있는지 확인할 수 있습니다. 그런 다음OutputConfiguration
를ExtensionSessionConfiguration.setPostviewOutputConfiguration
에 전달할 수 있습니다.더 최적화되고 전력 효율적인 미리보기 렌더링 경로를 허용하는
SurfaceView
지원확장 프로그램 사용 중에 탭하여 초점 맞추기 및 확대/축소를 지원합니다.
인센서 줌
CameraCharacteristics
의 REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE
에 SCALER_AVAILABLE_STREAM_USE_CASES_CROPPED_RAW
가 포함된 경우 앱은 고급 센서 기능을 사용하여 스트림 사용 사례가 CameraMetadata.SCALER_AVAILABLE_STREAM_USE_CASES_CROPPED_RAW
로 설정된 RAW 타겟과 함께 CaptureRequest
를 사용하여 잘린 RAW 스트림에 전체 시야와 동일한 픽셀을 제공할 수 있습니다.
요청 재정의 컨트롤을 구현하면 업데이트된 카메라에서 다른 카메라 컨트롤이 준비되기 전에도 사용자에게 확대/축소 컨트롤을 제공할 수 있습니다.
무손실 USB 오디오
Android 14 gains support for lossless audio formats for audiophile-level
experiences over USB wired headsets. You can query a USB device for its
preferred mixer attributes, register a listener for changes in preferred mixer
attributes, and configure mixer attributes using the
AudioMixerAttributes
class. This class represents the
format, such as channel mask, sample rate, and behavior of the audio mixer. The
class allows for audio to be sent directly, without mixing,
volume adjustment, or processing effects.
개발자 생산성 및 도구
인증 관리자
Android 14 adds Credential Manager as a platform API, with additional support back to Android 4.4 (API level 19) devices through a Jetpack Library using Google Play services. Credential Manager aims to make sign-in easier for users with APIs that retrieve and store credentials with user-configured credential providers. Credential Manager supports multiple sign-in methods, including username and password, passkeys, and federated sign-in solutions (such as Sign-in with Google) in a single API.
Passkeys provide many advantages. For example, passkeys are built on industry standards, can work across different operating systems and browser ecosystems, and can be used with both websites and apps.
For more information, see the Credential Manager and passkeys documentation and the blogpost about Credential Manager and passkeys.
헬스 커넥트
Health Connect is an on-device repository for user health and fitness data. It allows users to share data between their favorite apps, with a single place to control what data they want to share with these apps.
On devices running Android versions prior to Android 14, Health Connect is available to download as an app on the Google Play store. Starting with Android 14, Health Connect is part of the platform and receives updates through Google Play system updates without requiring a separate download. With this, Health Connect can be updated frequently, and your apps can rely on Health Connect being available on devices running Android 14 or higher. Users can access Health Connect from the Settings in their device, with privacy controls integrated into the system settings.


Health Connect includes several new features in Android 14, such as exercise routes, allowing users to share a route of their workout which can be visualized on a map. A route is defined as a list of locations saved within a window of time, and your app can insert routes into exercise sessions, tying them together. To ensure that users have complete control over this sensitive data, users must allow sharing individual routes with other apps.
For more information, see the Health Connection documentation and the blogpost on What's new in Android Health.
OpenJDK 17 업데이트
Android 14 continues the work of refreshing Android's core libraries to align with the features in the latest OpenJDK LTS releases, including both library updates and Java 17 language support for app and platform developers.
The following features and improvements are included:
- Updated approximately 300
java.base
classes to Java 17 support. - Text Blocks, which introduce multi-line string literals to the Java programming language.
- Pattern Matching for instanceof, which allows an object to
be treated as having a specific type in an
instanceof
without any additional variables. - Sealed classes, which allow you restrict which classes and interfaces can extend or implement them.
Thanks to Google Play system updates (Project Mainline), over 600 million devices are enabled to receive the latest Android Runtime (ART) updates that include these changes. This is part of our commitment to give apps a more consistent, secure environment across devices, and to deliver new features and capabilities to users independent of platform releases.
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
앱 스토어 개선사항
Android 14에서는 앱 스토어에서 사용자 환경을 개선할 수 있는 여러 PackageInstaller
API를 도입했습니다.
다운로드하기 전에 설치 승인 요청
앱을 설치하거나 업데이트하려면 사용자 승인이 필요할 수 있습니다.
예를 들어 REQUEST_INSTALL_PACKAGES
권한을 사용하는 설치 프로그램이 새 앱을 설치하려고 할 때를 예로 들 수 있습니다. 이전 Android 버전에서는 APK가 설치 세션에 기록되고 세션이 커밋된 후에만 앱 스토어에서 사용자 승인을 요청할 수 있습니다.
Android 14부터 requestUserPreapproval()
메서드를 사용하면 설치 프로그램이 설치 세션을 커밋하기 전에 사용자 승인을 요청할 수 있습니다. 이러한 개선을 통해 사용자가 설치를 승인할 때까지 앱 스토어에서 APK 다운로드를 연기할 수 있습니다. 또한 사용자가 설치를 승인하면 앱 스토어는 사용자를 방해하지 않고 백그라운드에서 앱을 다운로드하여 설치할 수 있습니다.
향후 업데이트에 관한 책임 주장
setRequestUpdateOwnership()
메서드를 사용하면 설치 프로그램이 설치되는 앱의 향후 업데이트를 책임진다고 시스템에 알릴 수 있습니다. 이 기능은 업데이트 소유권 적용을 사용 설정합니다. 즉, 업데이트 소유자만 앱에 자동 업데이트를 설치할 수 있습니다. 업데이트 소유권 적용은 사용자가 예상되는 앱 스토어에서만 업데이트를 수신하도록 합니다.
업데이트를 설치하려면 INSTALL_PACKAGES
권한을 사용하는 설치 프로그램을 비롯한 다른 모든 설치 프로그램이 명시적인 사용자 승인을 받아야 합니다. 사용자가 다른 소스의 업데이트를 진행하기로 하면 업데이트 소유권이 손실됩니다.
방해가 되지 않는 시간에 앱 업데이트
앱 스토어는 일반적으로 활발히 사용되고 있는 앱은 업데이트하지 않으려고 합니다. 이 경우 앱의 실행 중인 프로세스가 종료되어 사용자가 하던 작업이 중단될 수 있기 때문입니다.
Android 14부터 InstallConstraints
API를 사용하면 설치 프로그램이 적절한 시점에 앱 업데이트를 실행할 수 있습니다. 예를 들어 앱 스토어는 commitSessionAfterInstallConstraintsAreMet()
메서드를 호출하여 사용자가 더 이상 앱과 상호작용하지 않을 때만 업데이트가 커밋되도록 할 수 있습니다.
선택적 분할을 원활하게 설치
분할 APK를 사용하면 앱의 기능을 모놀리식 APK가 아닌 별도의 APK 파일로 제공할 수 있습니다. 분할 APK를 사용하면 앱 스토어에서 다양한 앱 구성요소의 전송을 최적화할 수 있습니다. 예를 들어 앱 스토어는 대상 기기의 속성을 기반으로 최적화할 수 있습니다. PackageInstaller
API는 API 수준 22에 도입된 이후 분할을 지원했습니다.
Android 14에서 setDontKillApp()
메서드를 사용하면 설치 프로그램이 새 분할이 설치될 때 앱의 실행 중인 프로세스를 종료해서는 안 된다고 나타낼 수 있습니다. 앱 스토어는 이 기능을 사용하여 사용자가 앱을 사용하는 동안 앱의 새로운 기능을 원활하게 설치할 수 있습니다.
앱 메타데이터 번들
Android 14부터 Android 패키지 설치 프로그램을 사용하면 데이터 보안 관행과 같은 앱 메타데이터를 지정하여 Google Play와 같은 앱 스토어 페이지에 포함할 수 있습니다.
사용자가 기기 스크린샷을 찍을 때 감지
To create a more standardized experience for detecting screenshots, Android 14 introduces a privacy-preserving screenshot detection API. This API lets apps register callbacks on a per-activity basis. These callbacks are invoked, and the user is notified, when the user takes a screenshot while that activity is visible.
사용자 환경
Sharesheet 맞춤 작업 및 개선된 순위 지정
Android 14에서는 맞춤 앱 작업과 사용자에게 더 많은 정보를 제공하는 미리보기 결과를 지원하도록 시스템 Sharesheet를 업데이트합니다.
맞춤 작업 추가
Android 14에서는 앱에서 호출하는 시스템 Sharesheet에 맞춤 작업을 추가할 수 있습니다.

직접 공유 타겟의 순위 향상
Android 14는 앱에서 더 많은 신호를 사용하여 직접 공유 타겟의 순위를 결정하고 사용자에게 더 유용한 결과를 제공합니다. 순위에 가장 유용한 신호를 제공하려면 직접 공유 타겟의 순위 향상에 관한 안내를 따르세요. 커뮤니케이션 앱은 발신 및 수신 메시지의 단축키 사용을 보고할 수도 있습니다.

뒤로 탐색 예측을 위한 내장 및 맞춤 애니메이션 지원
Android 13 introduced the predictive back-to-home animation behind a developer option. When used in a supported app with the developer option enabled, swiping back shows an animation indicating that the back gesture exits the app back to the home screen.
Android 14 includes multiple improvements and new guidance for Predictive Back:
- You can set
android:enableOnBackInvokedCallback=true
to opt in to predictive back system animations per-Activity instead of for the entire app. - We've added new system animations to accompany the back-to-home animation from Android 13. The new system animations are cross-activity and cross-task, which you get automatically after migrating to Predictive Back.
- We've added new Material Component animations for Bottom sheets, Side sheets, and Search.
- We've created design guidance for creating custom in-app animations and transitions.
- We've added new APIs to support custom in-app transition animations:
handleOnBackStarted
,handleOnBackProgressed
,handleOnBackCancelled
in
OnBackPressedCallback
onBackStarted
,onBackProgressed
,onBackCancelled
in
OnBackAnimationCallback
- Use
overrideActivityTransition
instead ofoverridePendingTransition
for transitions that respond as the user swipes back.
With this Android 14 preview release, all features of Predictive Back remain behind a developer option. See the developer guide to migrate your app to predictive back, as well as the developer guide to creating custom in-app transitions.
대형 화면 기기 제조업체 앱별 재정의
Per-app overrides enable device manufacturers to change the behavior of apps on large screen devices. For example, the FORCE_RESIZE_APP
override instructs the system to resize the app to fit display dimensions (avoiding size compatibility mode) even if resizeableActivity="false"
is set in the app manifest.
Overrides are intended to improve the user experience on large screens.
New manifest properties enable you to disable some device manufacturer overrides for your app.
대형 화면 사용자 앱별 재정의
앱별 재정의는 대형 화면 기기에서 앱의 동작을 변경합니다. 예를 들어 OVERRIDE_MIN_ASPECT_RATIO_LARGE
기기 제조업체 재정의는 앱 구성과 관계없이 앱 가로세로 비율을 16:9로 설정합니다.
Android 14 QPR1을 사용하면 사용자가 대형 화면 기기에서 새 설정 메뉴를 통해 앱별 재정의를 적용할 수 있습니다.
앱 화면 공유
App screen sharing enables users to share an app window instead of the entire device screen during screen content recording.
With app screen sharing, the status bar, navigation bar, notifications, and other system UI elements are excluded from the shared display. Only the content of the selected app is shared.
App screen sharing improves productivity and privacy by enabling users to run multiple apps but limit content sharing to a single app.
Pixel 8 Pro의 Gboard에서 LLM 기반 스마트 답장
On Pixel 8 Pro devices with the December Feature Drop, developers can try out higher-quality smart replies in Gboard powered by on-device Large Language Models (LLMs) running on Google Tensor.
This feature is available as a limited preview for US English in WhatsApp, Line, and KakaoTalk. It requires using a Pixel 8 Pro device with Gboard as your keyboard.
To try it out, first enable the feature in Settings > Developer Options > AiCore Settings > Enable Aicore Persistent.
Next, open a conversation in a supported app to see LLM-powered Smart Reply in Gboard's suggestion strip in response to incoming messages.
그래픽
이제 쿼리하고 보간할 수 있는 경로
Android's Path
API is a powerful and flexible mechanism for
creating and rendering vector graphics, with the ability to stroke or fill a
path, construct a path from line segments or quadratic or cubic curves, perform
boolean operations to get even more complex shapes, or all of these
simultaneously. One limitation is the ability to find out what is actually in a
Path object; the internals of the object are opaque to callers after creation.
To create a Path
, you call methods such as
moveTo()
, lineTo()
, and
cubicTo()
to add path segments. But there has been no way to
ask that path what the segments are, so you must retain that information at
creation time.
Starting in Android 14, you can query paths to find out what's inside of them.
First, you need to get a PathIterator
object using the
Path.getPathIterator
API:
Kotlin
val path = Path().apply { moveTo(1.0f, 1.0f) lineTo(2.0f, 2.0f) close() } val pathIterator = path.pathIterator
Java
Path path = new Path(); path.moveTo(1.0F, 1.0F); path.lineTo(2.0F, 2.0F); path.close(); PathIterator pathIterator = path.getPathIterator();
Next, you can call PathIterator
to iterate through the segments
one by one, retrieving all of the necessary data for each segment. This example
uses PathIterator.Segment
objects, which packages up the data
for you:
Kotlin
for (segment in pathIterator) { println("segment: ${segment.verb}, ${segment.points}") }
Java
while (pathIterator.hasNext()) { PathIterator.Segment segment = pathIterator.next(); Log.i(LOG_TAG, "segment: " + segment.getVerb() + ", " + segment.getPoints()); }
PathIterator
also has a non-allocating version of next()
where you can pass
in a buffer to hold the point data.
One of the important use cases of querying Path
data is interpolation. For
example, you might want to animate (or morph) between two different paths. To
further simplify that use case, Android 14 also includes the
interpolate()
method on Path
. Assuming the two paths have
the same internal structure, the interpolate()
method creates a new Path
with that interpolated result. This example returns a path whose shape is
halfway (a linear interpolation of .5) between path
and otherPath
:
Kotlin
val interpolatedResult = Path() if (path.isInterpolatable(otherPath)) { path.interpolate(otherPath, .5f, interpolatedResult) }
Java
Path interpolatedResult = new Path(); if (path.isInterpolatable(otherPath)) { path.interpolate(otherPath, 0.5F, interpolatedResult); }
The Jetpack graphics-path library enables similar APIs for earlier versions of Android as well.
버텍스 및 프래그먼트 셰이더가 있는 맞춤 메시
Android has long supported drawing triangle meshes with custom shading, but the input mesh format has been limited to a few predefined attribute combinations. Android 14 adds support for custom meshes, which can be defined as triangles or triangle strips, and can, optionally, be indexed. These meshes are specified with custom attributes, vertex strides, varying, and vertex and fragment shaders written in AGSL.
The vertex shader defines the varyings, such as position and color, while the
fragment shader can optionally define the color for the pixel, typically by
using the varyings created by the vertex shader. If color is provided by the
fragment shader, it is then blended with the current Paint
color using the blend mode selected when
drawing the mesh. Uniforms can be passed
into the fragment and vertex shaders for additional flexibility.
캔버스의 하드웨어 버퍼 렌더러
Android의 Canvas
API를 사용하여 하드웨어 가속으로 HardwareBuffer
에 그리는 것을 지원하기 위해 Android 14에서는 HardwareBufferRenderer
를 도입합니다. 이 API는
시스템과의 통신이 포함된 사용 사례에 특히 유용합니다
짧은 지연 시간을 위해 SurfaceControl
를 통한 컴포지터
있습니다.