[英]Random position for ImageView and animation
我的應用程序很簡單:一些ImageView在布局外部隨機創建,然后它們將直接移入布局,並在到達另一側時消失。 這個想法很簡單,但我無法實現。 請幫我!
可能的解決方案:
TranslateAnimation tA=new TranslateAnimation(randomX,randomY,endX,endY);
image.setAnimation(tA);
tA.start();
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.