문제점 : 애니메이션 목록의 첫 번째 요소 만 표시합니다. 당김 고해상도의애니메이션 목록이 작동하지 않음 - 첫 번째 요소 만 표시
애니메이션 목록 당김 파일/:
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" >
<item
android:drawable="@drawable/k2si"
android:duration="1000"/>
<item
android:drawable="@drawable/android"
android:duration="1000"/>
</animation-list>
애니메이션을 시작하면 :
ImageView image = (ImageView) findViewById(R.id.imageView1);
image.setBackgroundResource(R.drawable.screensaver_image);
((AnimationDrawable) image.getBackground()).start();
드로어 블은 무엇입니까? –
어디에서 start() 메소드를 호출하고 있습니까? 그것이 당신의 활동의 onCreate에 있다면 그것은 작동하지 않을 것입니다. – MikeIsrael
@Mike - 네, 그것은'onCreate()'에 있습니다. 시작을 불러내는 올바른 라이프 사이클 방법은 무엇입니까? –