本文整理了Java中android.widget.ImageView.onSizeChanged()
方法的一些代码示例,展示了ImageView.onSizeChanged()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.onSizeChanged()
方法的具体详情如下:
包路径:android.widget.ImageView
类名称:ImageView
方法名:onSizeChanged
暂无
代码示例来源:origin: xinghongfei/LookLook
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
if (foreground != null) {
foreground.setBounds(0, 0, w, h);
}
}
代码示例来源:origin: hdodenhof/CircleImageView
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
setup();
}
代码示例来源:origin: naman14/Timber
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
setup();
}
代码示例来源:origin: Bearded-Hen/Android-Bootstrap
@Override protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
updateImageState();
}
代码示例来源:origin: HotBitmapGG/bilibili-android-client
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
setup();
}
代码示例来源:origin: lygttpod/SuperTextView
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
setup();
}
代码示例来源:origin: GitLqr/LQRWeChat
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
setup();
}
代码示例来源:origin: siyamed/android-shape-imageview
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
createMaskCanvas(w, h, oldw, oldh);
}
代码示例来源:origin: bm-x/PhotoView
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
mWidgetRect.set(0, 0, w, h);
mScreenCenter.set(w / 2, h / 2);
if (!isKnowSize) {
isKnowSize = true;
initBase();
}
}
代码示例来源:origin: lyft/scissors
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
resetTouchManager();
}
代码示例来源:origin: Hitomis/transferee
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
mWidgetRect.set(0, 0, w, h);
mScreenCenter.set(w / 2, h / 2);
if (!isKnowSize) {
isKnowSize = true;
initBase();
}
}
代码示例来源:origin: qiujuer/Genius-Android
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
Drawable drawable = mTouchDrawable;
if (drawable != null) {
drawable.setBounds(mShadowRadius, mShadowRadius, getWidth() - mShadowRadius, getHeight() - mShadowRadius);
}
}
代码示例来源:origin: siyamed/android-shape-imageview
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
getPathHelper().onSizeChanged(w, h);
}
代码示例来源:origin: qiujuer/Genius-Android
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
TouchEffectDrawable drawable = mTouchDrawable;
if (drawable != null) {
drawable.setBounds(0, 0, getWidth(), getHeight());
}
}
代码示例来源:origin: alexvasilkov/GestureViews
@Override
protected void onSizeChanged(int width, int height, int oldWidth, int oldHeight) {
super.onSizeChanged(width, height, oldWidth, oldHeight);
controller.getSettings().setViewport(width - getPaddingLeft() - getPaddingRight(),
height - getPaddingTop() - getPaddingBottom());
controller.resetState();
}
代码示例来源:origin: GcsSloop/diycode
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
setup();
}
代码示例来源:origin: tianshaojie/AndroidFine
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
mWidgetRect.set(0, 0, w, h);
mScreenCenter.set(w / 2, h / 2);
if (!isKnowSize) {
isKnowSize = true;
initBase();
}
}
代码示例来源:origin: bookdash/bookdash-android-app
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
centerX = w / 2;
centerY = h / 2;
viewRadius = Math.min(w,h) / 2;
ringWidth = Math.round((float) viewRadius * ringWidthRatio);
circleRadius = viewRadius - ringWidth;
ringPaint.setStrokeWidth(ringWidth);
ringPaint.setAlpha(ringAlpha);
ringRadius = circleRadius - ringWidth/2;
}
代码示例来源:origin: smuyyh/SprintNBA
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
setup();
}
代码示例来源:origin: lguipeng/BubbleView
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
if (w > 0 && h > 0){
setUp(w, h);
}
}
内容来源于网络,如有侵权,请联系作者删除!