[英]what is the equivalent component in android like uiindicator in iphone
任何人都可以說出iphone中的uiindicator等Android等效組件是什么嗎?
謝謝
在活動java類中:
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);
}
在布局xml文件中,您可以添加進度欄:
<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>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.