progressBarStyleSmallTitle 标题栏进度条

原创
2013/12/11 14:14
阅读数 2.2K
四  progressBarStyleSmallTitle 标题栏进度条
main.xml:
 
<ProgressBar  
        android:id="@+id/processBar" 
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        style="?android:attr/progressBarStyleSmallTitle" /> 
 
java
 
package  Android 2.test; 
 
import android.app.Activity; 
import android.os.Bundle; 
import android.view.Window; 
 
public class Android2Activity extends Activity { 
    /** Called when the activity is first created. */ 
    @Override 
    public void onCreate(Bundle savedInstanceState) { 
        super.onCreate(savedInstanceState); 
        requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); 
        setContentView(R.layout.main); 
        setProgressBarIndeterminateVisibility(true);  
    } 

 
requestWindowFeature(Window.FEATURE_PROGRESS);   //设置窗口进度条特性风格
setProgressBarIndeterminateVisibility(true);     //设置进度条可见性:
 
展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
2 收藏
0
分享
返回顶部
顶部