2017年2月20日 星期一

Progress Bar - UI Control

Progress Bar


Progress Bar:進度條。例如:上傳或下載進度條。


Progress Bar的屬性(寫在.java裡面):


  getMax():Progress Bar的最大值。

  incrementProgressBy(int diff):指定增加的進度。

  setIndeterminate(boolean indeterminate)

     setIndeterminate(true),Progress Bar會在最小值和最大值之間來回移動,表示在工作中

    setIndeterminate(false),Progress Bar會慢慢往前跑,表示現在進度

  setMax(int max):設定Progress Bar的最大值。

 setProgress(int value)Progress Bar的主要進度。

 setSecondaryProgress(int):Progress Bar的次要進度。

 show(Context context, CharSequence title, CharSequence message):顯示Progress Bar進度。

 setMessage:在Progress Bar顯示的訊息。

 setProgresstyleProgress Bar的樣式。

        ProgressDialog.STYLE_SPINNER  旋體進度條風 格。  (默認)         
        ProgressDialog.STYLE_HORIZONTAL 橫向進度條風格。

 setTitleProgress Bar顯示的標題。




參考文獻



《Android》『Button』- Button 的基本用法
http://xnfood.com.tw/android-button/

Android - 基礎元件:各種 Button 比較
https://www.blogger.com/blogger.g?blogID=5349486813674913166#editor/target=post;postID=7717794580411238493;onPublishedMenu=allposts;onClosedMenu=allposts;postNum=0;src=link

Android Progress Bar using ProgressDialog
https://www.tutorialspoint.com/android/android_progressbar.htm

[Android] ProgressBar(進度條)之使用介紹(二)
http://peimei0808.pixnet.net/blog/post/299584847-%5Bandroid%5D-progressbar(%E9%80%B2%E5%BA%A6%E6%A2%9D)%E4%B9%8B%E4%BD%BF%E7%94%A8%E4%BB%8B%E7%B4%B9(%E4%BA%8C)

Android ProgressDialog
http://tw.gitbook.net/android/android_progressbar.html

<Android> ProgressBar 教學範例@ 巴奈特想到了什麼
http://barnettliao.pixnet.net/blog/post/191343270-%3Candroid%3E-progressbar-%E6%95%99%E5%AD%B8-%E7%AF%84%E4%BE%8B

【 Android 】Seekbar
http://zfejdje.blogspot.tw/2014/04/android-seekbar.html

Android中使用Notification實現進度通知欄(示例三)
http://www.zendei.com/article/21175.html

顯示"進度"的小視窗 (ProgressDialog)(setProgressStyle)
http://blog.xuite.net/uwlib_mud/twblog/108243418-%E9%A1%AF%E7%A4%BA%22%E9%80%B2%E5%BA%A6%22%E7%9A%84%E5%B0%8F%E8%A6%96%E7%AA%97+(ProgressDialog)

ProgressDialog的常用設定(setProgressStyle)
http://yeeapps.com/11/news_detial.php?news_id=ProgressDialog%E7%9A%84%E5%B8%B8%E7%94%A8%E8%A8%AD%E5%AE%9A



<Android> ProgressBar 教學範例@ 巴奈特想到了什麼
http://barnettliao.pixnet.net/blog/post/191343270-%3Candroid%3E-progressbar-%E6%95%99%E5%AD%B8-%E7%AF%84%E4%BE%8B

【 Android 】Seekbar
http://zfejdje.blogspot.tw/2014/04/android-seekbar.html

Android中使用Notification實現進度通知欄(示例三)
http://www.zendei.com/article/21175.html

顯示"進度"的小視窗 (ProgressDialog)(setProgressStyle)
http://blog.xuite.net/uwlib_mud/twblog/108243418-%E9%A1%AF%E7%A4%BA%22%E9%80%B2%E5%BA%A6%22%E7%9A%84%E5%B0%8F%E8%A6%96%E7%AA%97+(ProgressDialog)

ProgressDialog的常用設定
http://yeeapps.com/11/news_detial.php?news_id=ProgressDialog%E7%9A%84%E5%B8%B8%E7%94%A8%E8%A8%AD%E5%AE%9A

怎样控制界面控件之進度條(ProgressBar)功能
http://fanli7.net/a/JAVAbiancheng/JAVAzonghe/20130623/374878.html

Android成長日記-ProgressBar的設計
https://read01.com/MggoP.html

ProgressBar的bug?彩蛋?特殊用法?
http://blog.xuite.net/abgne/diary1/10499967-ProgressBar%E7%9A%84bug%EF%BC%9F%E5%BD%A9%E8%9B%8B%EF%BC%9F%E7%89%B9%E6%AE%8A%E7%94%A8%E6%B3%95%EF%BC%9F

android ProgressBar
http://www.jianshu.com/p/63af8ea97aae

Android Example: Progress Bar Tutorial (With Secondary Progress)
https://dzone.com/articles/android-example-progress-bar

Android AsyncTask Example with Progress Bar
http://www.concretepage.com/android/android-asynctask-example-with-progress-bar


沒有留言:

張貼留言