这个逐帧动画可不可以从中间几帧开始?或者指定播放到第几帧呀动画androidAnimationDrawable

解决方案 »

  1.   

    可以用if判断,当for图片被定位到你需要的那个位置时,将循环跳出就OK了
      

  2.   

    用这个AnimationDrawable加载图片文件是不用循环的
    <animation-list xmlns:android="http://schemas.android.com/apk/res/android" 
          > 
        
        <item android:drawable="@drawable/s60_23_49_99_10012" android:duration="100"></item>  
        <item android:drawable="@drawable/s60_23_49_99_10013" android:duration="100"></item>  
        <item android:drawable="@drawable/s60_23_49_99_10014" android:duration="100"></item>  
        <item android:drawable="@drawable/s60_23_49_99_10015" android:duration="100"></item>  
        
    </animation-list>