开发者

what is the equivalent component in android like uiindicator in iphone

can anybody tell what is the equivalent component开发者_Python百科 in android like uiindicator in iphone give example

Thanks


In activity java class:

protected void startProgress() {
    ProgressBar pbSpinner = (ProgressBar)findViewById(R.id.activity_progress_bar);    
    pbSpinner.setVisibility(View.VISIBLE);      
}

protected void stopProgress() {
    ProgressBar pbSpinner = (ProgressBar)findViewById(R.id.activity_progress_bar);
    pbSpinner.setVisibility(View.INVISIBLE);
}

And in layout xml file you can add progress bar:

<ProgressBar android:id="@+id/activity_progress_bar"              
android:layout_width="wrap_content" android:layout_height="wrap_content"            
android:layout_centerHorizontal="true" android:layout_centerVertical="true">            
</ProgressBar>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜