标签:ar sp on art bs as tt size new
1.seekBar的主要属性
2.OnSeekBarChangeListener
3.RatingBar的主要属性
4.OnRatingBarChangeListener
//==========================
1.进度条最大值:max
2.进度条:progress
3.次要进度的值:secondaryProgress
//================================
SeekBar的监听器
OnSeekBarChangeListener
1.onProgressChanged(
2.onStartTrackingTouch(
3.onStopTrackibfTouch(
//==========================
private SeekBar seekBar;
seekBar = (SeekBar)findViewById
seekBar.setProgress(30);
seekBar.setSecondaryProgress(50);
//==================
class SeekBarListenerChanged (SeekBar SeekBar,int progress,blooean fromUser)
{
}
seekBar该对象指的是触发了监听器的对象
//=========================
SeekBarListener listener = new SeekBarListener();
seekBar.setOnSeekBarChangedListener(listener);
//===========================================
RatingBar
1.星星的个数 numStars
2.当前等级:progress
3.stepSize
//==========================
OnRatingBarChangeListener
1.onRatingChanged(RatingBar ratingBar,)
//===================================
class RatingBarListener implements onRatingBarChangeListener
{
public void onRatingChanged(RatingBar ratingBar,floay rating,boolean fromUser)
}
//========================================
标签:ar sp on art bs as tt size new
原文地址:http://www.cnblogs.com/yuanyifei/p/4168135.html