由网友(一身清香味)分享简介:谁能帮助.....我想告诉我的应用程序的进度圈而载入data.i有一个活动,正从一个活动到另一个我解析一些XML数据,因此暂时直到解析完成我想说明一个圆形的负载效应。Can anyone help ..... I want to show a progress Circle in my app while loadi...
谁能帮助.....我想告诉我的应用程序的进度圈而载入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
相关推荐
最新文章