我應該顯示一個從左到右繪製線條的動畫。請看下面的圖片。android,如何從左到右掃動alpha動畫?
- 第一層是背景(圖像整體沒有根線和國名)
- 第二層是線和國名。
我可以用在我的活動方式如下奧飛動漫:
mIvRoot = (ImageView) findViewById(R.id.ivRoot);
ObjectAnimator alphaAnim = ObjectAnimator.ofFloat(mIvRoot, "alpha", 0f, 1f);
alphaAnim.setDuration(2000);
alphaAnim.start();
雖然它工作正常,但是阿爾法適用於整個圖像。我正在尋找的東西是阿爾法從左到右適用。因此,用戶感覺線條正在繪製。
任何建議,將不勝感激。由於
似乎這是我的問題的答案。謝謝Yahya。 – Hesam