[英]Setting app icon as progress bar in android
在啟動屏幕上的android應用程序上,我需要將應用程序圖標設置為旋轉進度欄,我該如何實現它。
誰能幫我提供代碼? 例如
該圖像是使用圓圈圖像作為進度條的應用程序的屏幕截圖。 我需要完全實現這一點。
嘗試以下代碼進行旋轉。
ImageView rotate_image =(ImageView) findViewById(R.id.your_image);
RotateAnimation rotate = new RotateAnimation(30, 360, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
rotate.setDuration(2500);
rotate_image.startAnimation(rotate);
希望這可以幫助。 謝謝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.