zoukankan      html  css  js  c++  java
  • ProgressDialog 的xml 功能布局

    而选择动画进度条显示进度:

    1.   用类构造器初始化进度对话框,ProgressDialog(Context)。

    2.   用setProgressStyle(int)方法设置进度风格为"STYLE_HORIZONTAL"以及设置其它属性,比如消息。

    创建ProgressDialog大概是这样的:

    1. ProgressDialog progressDialog = new ProgressDialog(getApplicationContext());  
    2.   
    3. progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);  
    4. progressDialog.setIcon(R.drawable.alert_dialog_icon);  
    5. progressDialog.setMessage("Loading...");  
    6. progressDialog.setCancelable(false);  

    3.   当你准备显示这个对话框时,调用show()或者从onCreateDialog(int)回调中返回ProgressDialog。

    4.   你可以通过调用setProgress(int)设置当前进度百分比或者调用incrementProgressBy(int)方法增加进度值。

    <ProgressBar android:id=”@+id/ProgressBar01″ 

    android:layout_width=”wrap_content” 

    android:layout_height=”wrap_content”> 

    </ProgressBar> 

    <ProgressBar android:id=”@+id/ProgressBar02″ 

    style=”?android:attr/progressBarStyleLarge”           大圆圈 

    android:layout_width=”wrap_content” 

    android:layout_height=”wrap_content”> 

    </ProgressBar> 

    <ProgressBar android:id=”@+id/ProgressBar03″ 

    style=”?android:attr/progressBarStyleSmall”          小圆圈 

    android:layout_width=”wrap_content” 

    android:layout_height=”wrap_content”> 

    </ProgressBar> 

  • 相关阅读:
    读取库中的所有表名
    ADOX学习
    自己寫的AccessDBHelper
    C#中Split用法~
    SQL Server:查看SQL日志文件大小SQL脚本
    MS SQL2005 How to find the top 50 cpu execution time.
    跨浏览器的本地存储解决方案
    這個SQL 語句你真的看明白了嗎?
    一个简单的SQL最优写法讨论(1)
    Gmail的标签容纳的邮件数量有限制。
  • 原文地址:https://www.cnblogs.com/firecode/p/2671148.html
Copyright © 2011-2022 走看看