已采納回答 / 單人影3304639
fillBefore是指動畫結束時畫面停留在第一幀,fillAfter是指動畫結束是畫面停留在最后一幀。?最關鍵的問題是,這2個參數不能在</alpha>,</scale>,</translate>,</rotate>中設置,這是沒有用的,必須?1)在動畫xml文件的</set>節點中設置,?[html] <?xml version="1.0" encoding="utf-8"?>?<set xmlns:android="htt...
2015-11-07
最新回答 / weibo_what_0
//創建動畫 Animation alpha=new AlphaAnimation(0.1f,1.0f); //設置動畫時間為5秒 alphalsetDuratoin(5000); //開始播放 img.startAnimation(alpha);
2015-08-21