무엇이 SeekBar입니까? 예 :
RelativeLayout.LayoutParams params3 =
new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT,
RelativeLayout.LayoutParams.WRAP_CONTENT);
params3.addRule(RelativeLayout.ABOVE, RemindButton.getId());
WidthBar = new SeekBar(this);
WidthBar.setMax(70);
WidthBar.setProgress(15);
WidthBar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
}
@Override
public void onStartTrackingTouch(SeekBar seekBar) {
// TODO Auto-generated method stub
}
@Override
public void onProgressChanged(SeekBar seekBar, int progress,
boolean fromUser) {
if (fromUser)
mPaint.setStrokeWidth(progress); //Change StrokeWidth
}
});
LL.addView(WidthBar,params3);
고마워요. 효과가있다. – pratima