> For the complete documentation index, see [llms.txt](https://airbnb.gitbook.io/lottie/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://airbnb.gitbook.io/lottie/android/basic-workflow.md).

# Basic Workflow

One of the primary motivations behind Lottie is to make shipping animations just as easy as shipping static assest.

### Switch from static assets to animations with 3 lines of code!

## Static Asset Workflow

Put your pngs or vector drawables (xml) in `res/drawable`\
Include it in your layout

```markup
<ImageView
        android:id="@+id/image_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:scaleType="centerCrop"
        android:src="@drawble/your_drawable" />
```

## Lottie workflow

Put your lottie json in `res/raw`\
Include it in your layout:

```markup
<com.airbnb.lottie.LottieAnimationView
        android:id="@+id/animation_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:scaleType="centerCrop"
        app:lottie_rawRes="@raw/your_animation"
        app:lottie_loop="true"
        app:lottie_autoPlay="true" />
```

`LottieAnimationView` extends `ImageView` so you can start by simply replacing your ImageViews with LottieAnimationViews even if you are still using drawables!
