'android | Lost animation when minimizing the app
I have a simple animation of opening an activity with a search:
Intent searchActivity = new Intent(this, SearchActivity.class);
ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(this,
Pair.create(searchEditText, "searchTransition"));
startActivity(searchActivity, options.toBundle());
But when I minimizing and reopening the app, the animation is lost, and the search activity closes with the standard animation. Is it supposed to work like this, or should I somehow re-establish the connection between the activities? vid's here
<EditText
android:id="@+id/searchEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:background="@drawable/wiki_search_form"
android:gravity="center_vertical"
android:hint="@string/search"
android:importantForAutofill="no"
android:inputType="text"
android:paddingHorizontal="16dp"
android:paddingVertical="12dp"
android:focusable="false"
android:textColor="?attr/textColor"
android:textSize="18sp"
android:transitionName="searchTransition"
app:drawableEndCompat="@drawable/ic_search_outline_28dp" />
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
