Is it possible to use transition drawable for Actionbar and how? I should use an xml like:
<xml version="1.0" encoding="utf-8"/>
<transition xmlns:android="http://schemas.android.com/apk/res/android"/>
<item android:drawable="@drawable/first_image"/>
<item android:drawable="@drawable/second_image"/>
</transition>
but how I continue from here?
Yes, it is possible. You can do it without XML, just create a
TransitionDrawablein your code:After that set this transition as background to your ActionBar:
And start the transition:
Also you can set this transition as background to Toolbar.