【发布时间】:2015-06-03 04:20:44
【问题描述】:
在启动屏幕上的我的 android 应用程序上,我需要将我的应用程序图标设置为旋转进度条,我该如何实现它。
谁能帮我写代码? 例如
图片是一个应用程序的屏幕截图,它使用被包围的图像作为进度条。我需要完全实现这一点。
【问题讨论】:
标签: android android-studio progress-bar
在启动屏幕上的我的 android 应用程序上,我需要将我的应用程序图标设置为旋转进度条,我该如何实现它。
谁能帮我写代码? 例如
图片是一个应用程序的屏幕截图,它使用被包围的图像作为进度条。我需要完全实现这一点。
【问题讨论】:
标签: android android-studio progress-bar
尝试以下代码进行旋转。
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);
希望这会有所帮助。谢谢
【讨论】: