<分区>
对于我的 android 应用程序,我想将图像放在 圆形进度条
中。
预期设计:
关于如何做到这一点有什么想法吗?
最佳答案
创建动画 xml:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/progress_bar"
android:pivotX="50%"
android:pivotY="50%" />
在布局 xml 中将以下内容设置为您的进度条 View :
android:indeterminateDrawable="@animator/progressbar_animation"
关于android - 图像居中的自定义圆形 ProgressBar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29229490/
相关文章:
android - 是否可以通过在 "app_remove"事件上使用 Google Analytics for Firebase 触发器自动向 Android 应用程序发送推送通知
java - Android: "Fatal Exception"使用 Google map 时在 URLConnection 上调用 getInputStream()
android - 带有 ProgressDialog 和进度条的 AsyncTask
android - AsyncTask、HttpClient 和 ProgressDialog