2017-07-30 116 views
0

enter image description here動畫的看法無限循環

我創建使用此連接的動畫:

public AnimationDrawable setAnyLine(AnimationDrawable animationDrawable) { 

     animationDrawable.addFrame(ContextCompat.getDrawable(this, R.drawable.line_01), getResources().getInteger(R.integer.animation_delay)); 
     animationDrawable.addFrame(ContextCompat.getDrawable(this, R.drawable.line_02), getResources().getInteger(R.integer.animation_delay)); 
     animationDrawable.addFrame(ContextCompat.getDrawable(this, R.drawable.line_03), getResources().getInteger(R.integer.animation_delay)); 
     animationDrawable.addFrame(ContextCompat.getDrawable(this, R.drawable.line_04), getResources().getInteger(R.integer.animation_delay)); 
     return animationDrawable; 
    } 

我想要做的就是填充TableLayout從一個ArrayList數據insted的使用圖像。 我想添加一個View(TableLayout),讓它坐在750millis,然後用另一個View替換它從另一個陣列元素填充,並讓它出現在相同的750millis直到ArrayList結束,然後再次重新啓動Animation

有誰能給我一個提示,我該如何實現這一點?

回答

0

經過一些工作和大量的閱讀thisthis帖子導致我的結果,我一直在尋找。 附加是最終結果。接下來將會覆蓋轉換。

enter image description here

+0

讓別人不會強迫遵循的回答,請鏈接嵌入在這個崗位的答案。 – Jamal