title: Is it possible to use TransitionDrawable on the ActionBar?
body: <p>I'm trying to do some color animation on the action bar by using a TransitionDrawable.</p>
  
  <p>The code I'm trying is pretty simple, during onCreate, I put the transition drawable as the actionbar background:</p>
  
  <pre><code>Drawable d = getResources().getDrawable(R.drawable.actionbar);
  actionbarDrawable = new TransitionDrawable(new Drawable[] { d, d });
  getActionBar().setBackgroundDrawable(actionbarDrawable);
  </code></pre>
  
  <p>then on the event I replace the second drawable of the TransitionDrawable and ask to animate it.</p>
  
  <pre><code>    actionbarDrawable.setDrawableByLayerId(1, d);
      actionbarDrawable.startTransition(666);
  </code></pre>
  
  <p>I've tried the same code on a RelativeLayout on my activity and it seems to work fine, any ideas why the ActionBar doesn't want to cooperate and how to make it work?</p>
  
  <p>thanks.</p>