2011-08-25 2 views
0

프레임별로 프레임 애니메이션을 여러 개의 이미지로 만들고 이미지를 드로어 블 폴더에서 가져옵니다. 이처럼 :이미지를 프레임별로 프레임 애니메이션 by URL

<animation-list xmlns:android= 
    "http://schemas.android.com/apk/res/android" 
android:oneshot="false"> 
    <item android:drawable="@drawable/renew20001" android:duration="50" /> 
    <item android:drawable="@drawable/renew20002" android:duration="50" /> 
    <item android:drawable="@drawable/renew20003" android:duration="50" /> 
    <item android:drawable="@drawable/renew20004" android:duration="50" /> 
    <item android:drawable="@drawable/renew20005" android:duration="50" /> 
</animation-list> 

지금은 특정 url.and 디스플레이에서 이미지를 가능 여부 animation.is거야? 그렇다면 해결책을 제공하십시오.

답변

0

드로어 블 폴더 이외의 곳에서 이미지를로드 할 수 있는지 확실하지 않습니다. 여기 내 요리 된 버전입니다. 당신의

private static final int DELAY = 500; 
Runnable changeImage = new Runnable() {  
    @Override 
    public void run() { 
     myImageView.setImageBitmap(getNewBitmap()); 
     myImageView.postDelayed(changeImage, DELAY); 
    } 
}; 

myImageView.postDelayed(changeImage, DELAY); 
을 onResume
관련 문제