<commit_before>---
layout: post
title: 'Getting Started with Activity & Fragment Transitions (part 1)'
date: 2014-12-04
permalink: /2014/12/activity-fragment-transitions-in-android-lollipop-part1.html
related: ['/2013/08/fragment-transaction-commit-state-loss.html',
    '/2013/04/retaining-objects-across-config-changes.html',
    '/2012/07/loaders-and-loadermanager-background.htmsl']
---

This post gives a brief overview of `Transition`s and introduces the new [Activity & Fragment transition APIs][customizeActivityTransitions] that were added in Android 5.0 Lollipop. This is the first of a series of posts I will be writing on the topic:

* **Part 1:** [Getting Started with Activity & Fragment Transitions][part1]
* **Part 2:** [Content Transitions In-Depth][part2]
* **Part 3:** {% comment %}[{% endcomment %}
              Shared Element Transitions In-Depth (_coming soon!_)
              {% comment %}][part3]{% endcomment %}
* **Part 4:** Activity & Fragment Transition Examples (_coming soon!_)

We begin by answering the following question: what is a `Transition`?

### What is a `Transition`?

<!--morestart--><commit_msg>fixed typo<commit_after>---
layout: post
title: 'Getting Started with Activity & Fragment Transitions (part 1)'
date: 2014-12-04
permalink: /2014/12/activity-fragment-transitions-in-android-lollipop-part1.html
related: ['/2013/08/fragment-transaction-commit-state-loss.html',
    '/2013/04/retaining-objects-across-config-changes.html',
    '/2012/07/loaders-and-loadermanager-background.html']
---

This post gives a brief overview of `Transition`s and introduces the new [Activity & Fragment transition APIs][customizeActivityTransitions] that were added in Android 5.0 Lollipop. This is the first of a series of posts I will be writing on the topic:

* **Part 1:** [Getting Started with Activity & Fragment Transitions][part1]
* **Part 2:** [Content Transitions In-Depth][part2]
* **Part 3:** {% comment %}[{% endcomment %}
              Shared Element Transitions In-Depth (_coming soon!_)
              {% comment %}][part3]{% endcomment %}
* **Part 4:** Activity & Fragment Transition Examples (_coming soon!_)

We begin by answering the following question: what is a `Transition`?

### What is a `Transition`?

<!--morestart-->
{'fraction_non_alphanumeric': 0.13468309859154928, 'fraction_numerical': 0.037852112676056336, 'mean_word_length': 4.3107476635514015, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5454116', 'n_tokens_mistral': 733, 'n_tokens_neox': 644, 'n_words': 218}