안드로이드 Animation 에는 먹히는 속성이 AnimationSet 에는 안 먹히는 것이 많네요 @_@

안드로이드 애니메이션 작업하다 계속 안되길래 찾아보니.. 쩝. 참고하세요~


http://stackoverflow.com/questions/4480652/android-animation-does-not-repeat


In summary (this concerns AnimationSets):

setRepeatCount() / android:repeatCount

This attribute (as well as repeatMode) does not work in code or XML. This makes repeating an entire set of animations difficult.

setDuration() / android:duration

Setting this on an AnimationSet in code WORKS (overrides all durations of children animations), but not when included in the tag in XML

setFillAfter() / android:fillAfter

This works in both code and XML for the tag. Strangely I have gotten it to also work without the need to set fillEnabled to true.

setFillBefore() / android:fillBefore

Seems to have no effect/ignored in both code and XML

setFillEnabled() / android:fillEnabled

Seems to have no effect/ignored in both code and XML. I can still get fillAfter to work even without including fillEnabled or setting fillEnabled to false.

setStartOffset() / android:startOffset

This works only in code and not XML.

 
블로그 이미지

AP4ILL

Time just fades the pages in my book of memories..

카테고리

분류 전체보기 (198)
2012년 이전 (165)
2013년 (25)
2014년 (7)