本文整理了Java中android.widget.SeekBar.onSizeChanged()
方法的一些代码示例,展示了SeekBar.onSizeChanged()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SeekBar.onSizeChanged()
方法的具体详情如下:
包路径:android.widget.SeekBar
类名称:SeekBar
方法名:onSizeChanged
暂无
代码示例来源:origin: smuyyh/BookReader
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(h, w, oldh, oldw);
}
代码示例来源:origin: w1123440793/VideoListDemo
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(h, w, oldw, oldh);
}
代码示例来源:origin: 18Gray/ProCamera
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh)
{
super.onSizeChanged(h, w, oldh, oldw);
}
}
代码示例来源:origin: tomahawk-player/tomahawk-android
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(h, w, oldh, oldw);
}
代码示例来源:origin: ksvc/KSYMediaPlayer_Android
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(h, w, oldh, oldw);
}
代码示例来源:origin: TongmingWu/Manga
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(h, w, oldh, oldw);
}
代码示例来源:origin: ksvc/KSYMediaPlayer_Android
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(h, w, oldh, oldw);
}
代码示例来源:origin: PangHaHa12138/Loading
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
}
代码示例来源:origin: apps4av/avare
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(h, w, oldh, oldw);
}
代码示例来源:origin: eliotstocker/Light-Controller
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(h, w, oldh, oldw);
}
代码示例来源:origin: gqjjqg/android-extend
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(h, w, oldh, oldw);
}
代码示例来源:origin: WiInputMethod/VE
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(h, w, oldh, oldw);
}
代码示例来源:origin: SwiftyWang/FingerColoring-Android
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
init();
}
代码示例来源:origin: grzegorznittner/chanu
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
// Scale the thumb to fit seek-bar height.
Resources res = getResources();
Drawable thumb = res.getDrawable(R.drawable.photoeditor_seekbar_thumb);
// Set the left/right padding to half width of the thumb drawn.
int scaledWidth = thumb.getIntrinsicWidth() * h / thumb.getIntrinsicHeight();
int padding = (scaledWidth + 1) / 2;
setPadding(padding, 0, padding, 0);
Bitmap bitmap = Bitmap.createBitmap(scaledWidth, h, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
thumb.setBounds(0, 0, bitmap.getWidth(), bitmap.getHeight());
thumb.draw(canvas);
setThumb(new BitmapDrawable(res, bitmap));
}
}
代码示例来源:origin: gqjjqg/android-extend
@Override
protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(heightMeasureSpec, widthMeasureSpec);
setMeasuredDimension(getMeasuredHeight(), getMeasuredWidth());
/**
* when the layout is changed.
* we also should changed the thumb's position
*/
super.onSizeChanged(getMeasuredHeight(), getMeasuredWidth(), 0, 0);
}
代码示例来源:origin: com.albedinsky.android/ui
/**
*/
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
this.ensureDecorator();
mDecorator.onSizeChanged(w, h, oldw, oldh);
if (mDecorator.hasPrivateFlag(PFLAG_DISCRETE) && mDiscreteIndicatorHeight > 0 && h != oldh) {
this.updateTrackPosition();
this.updateThumbPosition();
this.updateDiscreteIndicatorPosition(getMeasuredWidth(), getMeasuredHeight());
}
}
代码示例来源:origin: com.albedinsky.android/ui-widget-picker
/**
*/
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
this.ensureDecorator();
mDecorator.onSizeChanged(w, h, oldw, oldh);
if (mDecorator.hasPrivateFlag(PFLAG_DISCRETE) && mDiscreteIndicatorHeight > 0 && h != oldh) {
this.updateTrackPosition();
this.updateThumbPosition();
this.updateDiscreteIndicatorPosition(getMeasuredWidth(), getMeasuredHeight());
}
}
内容来源于网络,如有侵权,请联系作者删除!