Is it possible to use TransitionDrawable on the ActionBar?
问题 I'm trying to do some color animation on the action bar by using a TransitionDrawable. The code I'm trying is pretty simple, during onCreate, I put the transition drawable as the actionbar background: Drawable d = getResources().getDrawable(R.drawable.actionbar); actionbarDrawable = new TransitionDrawable(new Drawable[] { d, d }); getActionBar().setBackgroundDrawable(actionbarDrawable); then on the event I replace the second drawable of the TransitionDrawable and ask to animate it.