我希望进步圈而不进度对话框 [英] i want Progress circle instead of progress dialog

查看:183
本文介绍了我希望进步圈而不进度对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能帮助.....我想告诉我的应用程序的进度圈而载入data.i有一个活动,正从一个活动到另一个我解析一些XML数据,因此暂时直到解析完成我想说明一个圆形的负载效应。

Can anyone help ..... I want to show a progress Circle in my app while loading data.i have an activity and moving from one activity to other i am parsing some xml data so for the time being untill the parsing complete i want to show a circular loading effect.

请帮我

在此先感谢

推荐答案

您可以使用一个不确定的进度为循环负载效应。这里是你如何做到这一点的XML:

You can use an indeterminate ProgressBar for the circular loading effect. Here is how you do it in XML:

<ProgressBar android:indeterminate="true"
            android:layout_width="50dp" android:layout_height="50dp"
            android:id="@+id/marker_progress" style="?android:attr/progressBarStyle"
            android:layout_gravity="center_vertical|center_horizontal"/>

您可以改变高度和宽度是你想要的。当您完成加载,你可以改变它的知名度View.INVISIBLE或View.GONE

You can change the height and width to be what you want. When you are done loading, you can change it's visibility to View.INVISIBLE or View.GONE

这篇关于我希望进步圈而不进度对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆