android 帧动画 内存溢出,android图片帧动画造成内存溢出的处理方法
com.anwen.widgetandroid.os.Handlerandroid.util.Logandroid.widget.ImageViewcom.anwen.event.BaseEventcom.anwen.event.EventCodecom.anwen.manager.EventManagerImageAnimation{HandlerMovieActionImageAnima...
com.anwen.widgetandroid.os.Handlerandroid.util.Logandroid.widget.ImageViewcom.anwen.event.BaseEventcom.anwen.event.EventCodecom.anwen.manager.EventManagerImageAnimation {
Handler MovieAction ImageAnimation(ImageView view[] frameResduration){
len = frameRes.[] frameDuration = [len](i=i
frameDuration[i]=duration}
.Init(viewframeResframeDuration)}
ImageAnimation(ImageView view[] frameRes[] frameDuration){
.Init(viewframeResframeDuration)}
(ImageView view[] frameRes[] frameDuration){
(==view) {
Log.()}(== frameRes || == frameDuration ||== frameRes.||== frameDuration.) {
Log.()}(frameRes.!= frameDuration.){
Log.()}{
= Handler()= MovieAction(viewframeResframeDuration)}
}
}
MovieAction Runnable{
ImageView [] [] Handler MovieAction(Handler handlerImageView view[] frameRes[] frameDuration){
.= view.= frameRes.= frameDuration.= handler= ..= .postDelayed([])}
(){
..removeCallbacks()}
() {
.setBackgroundResource([])++(++
.postDelayed([])}{
更多推荐
所有评论(0)