-1
A
回答
1
尝试将此添加到您的布局xml文件:
<ProgressBar android:id="@+id/progressBar" android:layout_width="wrap_content" android:layout_height="wrap_content" />
这是你的意思?
0
您可以尝试this Circle Progress library
CircularProgress:
<com.github.lzyzsd.circleprogress.CircleProgress
android:id="@+id/circle_progress"
android:layout_marginLeft="50dp"
android:layout_width="100dp"
android:layout_height="100dp"
custom:circle_progress="20"/>
CircleProgress:
<com.github.lzyzsd.circleprogress.CircleProgress
android:id="@+id/circle_progress"
android:layout_marginLeft="50dp"
android:layout_width="100dp"
android:layout_height="100dp"
custom:circle_progress="20"/>
ArcProgress:
<com.github.lzyzsd.circleprogress.ArcProgress
android:id="@+id/arc_progress"
android:background="#214193"
android:layout_marginLeft="50dp"
android:layout_width="100dp"
android:layout_height="100dp"
custom:arc_progress="55"
custom:arc_bottom_text="MEMORY"/>
0
使用此代码
public class CustomAlertDia extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//crated new alert dialog
Dialog alertDialog = new Dialog(this);
alertDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
alertDialog.setContentView(R.layout.progress_dia);
alertDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); //transperent background
ImageView hero = (ImageView)alertDialog.findViewById(R.id.iv_progress);
//setup rotate background effect
RotateAnimation ro = new RotateAnimation(0, 360, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
ro.setDuration(1500);
ro.setRepeatCount(Animation.INFINITE);
ro.setInterpolator(new LinearInterpolator());
hero.setAnimation(ro);
alertDialog.show();
}
}
您可以this image,并检查它
相关问题
- 1. 进度条实现
- 2. jquery循环进度条
- 3. 如何实现jQuery的PHP进度条
- 4. 如何在Ruby中实现进度条?
- 5. 如何使用TIdTCPClient实现进度条?
- 6. 如何实现自定义进度条
- 7. 任何PyQt循环进度条?
- 8. 实现分段进度条
- 9. 如何实现循环UIScrollView?
- 10. 圈进度条不断循环
- 11. 进度条使用嵌套for循环
- 12. 估计进度条的循环时间
- 13. 实现循环
- 14. 异步jQuery数据库循环 - 帮助实施进度条
- 15. Android循环进度条在进度上变慢
- 16. 如何从ajax循环创建进度条?
- 17. 如何在UITableViewCell中使用循环进度条?
- 18. 如何更改循环中的进度条?
- 19. 如何结合循环或如何实现许多循环到glib主循环?
- 20. 如何实现具有两个循环的条件
- 21. 如何在Expect的while循环中实现“后备条件”?
- 22. 如何在Haskell中实现带条件休息的循环
- 23. 如何在promela中实现重复直到(条件)循环?
- 24. 在libGDX中实现cricle进度条
- 25. 实现一个进度条类
- 26. 实现MySQL命令进度条
- 27. nodeBB上的进度条实现
- 28. PHP循环实现
- 29. WordPress的:如何实现for-each循环?
- 30. 手写笔如何实现循环?
不,我想以同样的方式在进度条如图所示的形象。我也尝试过自定义进度条,但没用。 –