title: How to use title Animations in codename one
body: <p>Pls how do i use Title Animations in CN1 to animate pictures in src directory. I followed the developer guide which I used the sample code. When I ran the code the picture did not perform any animation. I want to modify this code to iterate the pictures in src directory so that I can have for example, img1, img2, img3. showing on the Title bar. Pls how do i go about this.</p>
  
  <p>This is the code I used.</p>
  
  <pre><code> Form hi = new Form("Toolbar", new BoxLayout(BoxLayout.Y_AXIS));
  EncodedImage placeholder =
  EncodedImage.createFromImage(Image.createImage(hi.getWidth(),
  hi.getWidth() / 5, 0xffff0000), true);
  URLImage background = URLImage.createToStorage(placeholder, "400px-  AGameOfThrones.jpg","http://awoiaf.westeros.org/images/thumb/9/93/AGameOfThrones.jpg/400px-AGameOfThrones.jpg");
  background.fetch();
  Style stitle = hi.getToolbar().getTitleComponent().getUnselectedStyle();
  stitle.setBgImage(background);
  stitle.setBackgroundType(Style.BACKGROUND_IMAGE_SCALED_FILL);
  stitle.setPaddingUnit(Style.UNIT_TYPE_DIPS, Style.UNIT_TYPE_DIPS,
  Style.UNIT_TYPE_DIPS, Style.UNIT_TYPE_DIPS);
  stitle.setPaddingTop(15);
       SpanButton credit = new SpanButton("This excerpt is from A Wiki Of Ice             AndFire. Please check it out by clicking here!");
  credit.addActionListener((e) -&gt;         Display.getInstance().execute("http://awoiaf.westeros.org/index.php/A_Game_of_Thrones"));
    add(credit);
       ComponentAnimation title =          hi.getToolbar().getTitleComponent().createStyleAnimation("Title", 200);
    hi.getAnimationManager().onTitleScrollAnimation(title);
    hi.show();
  </code></pre>
  
  <p>I was able to have the picture on the TitleBar but it was not animating.</p>