animation-graphics
Composable Functions
  • animatedVectorResource
  • rememberAnimatedVectorPainter
Classes
  • AnimatedImageVector
  • ExperimentalAnimationGraphicsApi
  • Ordering.Sequentially
  • Ordering.Together
  • ValueType.Color
  • ValueType.Float
  • ValueType.Int
  • ValueType.Path
Jetpack Compose / Compose Animation / animation-graphics / Composable Functions / animatedVectorResource
Composable Function

animatedVectorResource

View Markdown Open in ChatGPT Open in Claude

Load an AnimatedImageVector from an Android resource id.

CodeRabbit

CodeRabbit

AI writes the code. CodeRabbit catches the slop.

AdTry CodeRabbit for Free
Robomori

Robomori

Run Android emulators and devices outside Android Studio.

AdTry Robomori

API

Examples

animatedVectorResource

Source set: Android
@Composable
public fun AnimatedImageVector.Companion.animatedVectorResource(
    @DrawableRes id: Int
): AnimatedImageVector

Load an AnimatedImageVector from an Android resource id.

Parameters

id the resource identifier

Return

an animated vector drawable resource.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free →

Content updated: 2026-11-04

API Reference ← Previous rememberAnimatedVectorPainter Next →

On this page

  • animatedVectorResource
Reach Android developers Put your product in front of engineers building Android and KMP apps. Sponsor Composables