-1
我試圖用一個按鈕來讓我的搜索欄慢慢增加& & ||遞減到一定int值(也許我只能用雙做到這一點?),讓我們說搜索條的進度從0開始,我想隨着時間約5秒期間遞增到50。這在Android中可能嗎?遞增/遞減搜索欄慢慢
// ON SEEKBAR CHANGE
fill.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
// TODO Auto-generated method stub
}
@Override
public void onStartTrackingTouch(SeekBar seekBar) {
// TODO Auto-generated method stub
}
@Override
public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {
// TODO Auto-generated method stub
fillProgress = String.valueOf(progress);
fillView.setText(fillProgress);
}
});
centerDistribution.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// TOAST: ARE YOU SURE YOU WANT TO fill bucket?
// IF YES
// INCREMENT SEEKBAR SLOWLY
}
});