xml
animation-list
을 xml
속성으로 설정하고 시작하는 방법이 있습니까? 내가 설정하고 다음과 같이 프로그램을 시작할 수 있습니다애니메이션 목록을 xml 속성으로 설정하는 방법
ImageView img = (ImageView) findViewById(R.id.loadingImageView);
img.setBackgroundResource(R.drawable.loading_animation);
AnimationDrawable frameAnimation = (AnimationDrawable) img.getBackground();
frameAnimation.start();
애니메이션 목록은 다음과 같습니다
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
//...
android:oneshot="false" >
<item
android:drawable="@drawable/loading_anim_frame_one"
android:duration="50"/>
<item
android:drawable="@drawable/loading_anim_frame_two"
android:duration="50"/>
등등을.
xml
마크 업 전용으로 수행 할 수있는 방법이 있습니까?
그렇지 않은 경우 최소한 xml
속성으로 설정 한 다음 프로그래밍 방식으로 시작하는 방법이 있습니까?
애니메이션이 여러 드로어 블 순서로 순서대로 구성되어 있기 때문에 단일 드로잉 블의 회전을 사용할 수 없습니다.
https://stackoverflow.com/questions/29603032/how-to-start-a-second-animation-list- 도움이 될 수있는 링크입니다 첫 번째 애니메이션이 끝난 후? s = 0 | 2.9229 내 문제를 해결하는 데 도움주세요. 심하게 붙어 있습니다 ... –