android中ProgressBar的使用SeekBar的使用和RatingBar的使用

  

MainActivity。java文件代码

包com.example.android_pickers2;
  进口android.app.Activity;
  进口android.os.AsyncTask;
  进口android.os.Bundle;
  进口android.view.Menu;
  进口android.view.View;
  进口android.view.View.OnClickListener;
  进口android.widget.Button;
  进口android.widget.ProgressBar;
  进口android.widget.RatingBar;
  进口android.widget.RatingBar.OnRatingBarChangeListener;
  进口android.widget.SeekBar;
  进口android.widget.SeekBar.OnSeekBarChangeListener;
  进口android.widget.Toast;
  公开课MainActivity延伸活动{
  按钮按钮;
  ProgressBar酒吧;
  SeekBar SeekBar;
  RatingBar RatingBar;
  
  @Override
  保护空白> & lt; RelativeLayout xmlns: android=" http://schemas.android.com/apk/res/android "
  xmlns:工具=" http://schemas.android.com/tools "
  android: layout_width=" match_parent "
  android: layout_height=" match_parent "
  android: paddingBottom=" @dimen/activity_vertical_margin”
  android: paddingLeft=" @dimen/activity_horizontal_margin”
  android: paddingRight=" @dimen/activity_horizontal_margin”
  android: paddingTop=" @dimen/activity_vertical_margin”
  工具:上下文="。祝辞MainActivity”;
  & lt;按钮
  android: id=癅 + id/button1”
  android: layout_width=" wrap_content "
  android: layout_height=" wrap_content "
  android: layout_alignParentBottom=" true "
  android: layout_centerHorizontal=" true "
  android: layout_marginBottom=" 71 dp”
  android:文本="下载图片”/比;
  & lt; ProgressBar
  android: id=癅 + id/progressBar1”
  
  android: layout_width=" wrap_content "
  android: layout_height=" wrap_content "
  android: layout_alignParentLeft=" true "
  android: layout_alignParentRight=" true "/比;
  & lt; SeekBar
  android: id=癅 + id/seekBar1”
  android: layout_width=" match_parent "
  android: layout_height=" wrap_content "
  android: layout_alignParentLeft=" true "
  android: layout_below=癅 + id/progressBar1”
  android: layout_marginTop=?8 dp/比;
  & lt; RatingBar
  android: id=癅 + id/ratingBar1”
  android: layout_width=" wrap_content "
  android: layout_height=" wrap_content "
  android: layout_alignParentLeft=" true "
  android: layout_below=癅 + id/seekBar1”
  android: layout_marginTop=" 30 dp/比;
  & lt;/RelativeLayout> 


android中ProgressBar的使用SeekBar的使用和RatingBar的使用