本文整理了Java中android.widget.ImageView.draw()
方法的一些代码示例,展示了ImageView.draw()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.draw()
方法的具体详情如下:
包路径:android.widget.ImageView
类名称:ImageView
方法名:draw
暂无
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onDrawShadow(Canvas canvas) {
iv.draw(canvas);
}
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onDrawShadow(Canvas canvas) {
iv.draw(canvas);
}
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onDrawShadow(Canvas canvas) {
iv.draw(canvas);
}
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onDrawShadow(Canvas canvas) {
iv.draw(canvas);
}
}
代码示例来源:origin: commonsguy/cw-omnibus
@Override
public void onDrawShadow(Canvas canvas) {
iv.draw(canvas);
}
}
代码示例来源:origin: xinghongfei/LookLook
@Override
public void draw(Canvas canvas) {
super.draw(canvas);
if (foreground != null) {
foreground.draw(canvas);
}
}
代码示例来源:origin: bm-x/PhotoView
@Override
public void draw(Canvas canvas) {
if (mClip != null) {
canvas.clipRect(mClip);
mClip = null;
}
super.draw(canvas);
}
代码示例来源:origin: Hitomis/transferee
@Override
public void draw(Canvas canvas) {
if (mClip != null) {
canvas.clipRect(mClip);
mClip = null;
}
super.draw(canvas);
}
代码示例来源:origin: ZieIony/Carbon
public void drawInternal(@NonNull Canvas canvas) {
super.draw(canvas);
if (stroke != null)
drawStroke(canvas);
if (rippleDrawable != null && rippleDrawable.getStyle() == RippleDrawable.Style.Over)
rippleDrawable.draw(canvas);
}
代码示例来源:origin: alexvasilkov/GestureViews
@Override
public void draw(@NonNull Canvas canvas) {
clipBoundsHelper.onPreDraw(canvas);
clipViewHelper.onPreDraw(canvas);
super.draw(canvas);
clipViewHelper.onPostDraw(canvas);
clipBoundsHelper.onPostDraw(canvas);
if (GestureDebug.isDrawDebugOverlay()) {
DebugOverlay.drawDebug(this, canvas);
}
}
代码示例来源:origin: tianshaojie/AndroidFine
@Override
public void draw(Canvas canvas) {
if (mClip != null) {
canvas.clipRect(mClip);
mClip = null;
}
super.draw(canvas);
}
代码示例来源:origin: sunfusheng/GlideImageView
@Override
public void draw(Canvas canvas) {
super.draw(canvas);
if (cornerIconDrawable != null) {
hasDrawCornerIcon = true;
cornerIconDrawable.setBounds(cornerIconBounds);
cornerIconDrawable.draw(canvas);
}
if (!TextUtils.isEmpty(imageData.text)) {
canvas.drawColor(getResources().getColor(R.color.nine_image_text_background_color));
float textX = getWidth() / 2f;
float textY = getHeight() / 2f + (fontMetrics.bottom - fontMetrics.top) / 2f - fontMetrics.bottom;
canvas.drawText(imageData.text, textX, textY, textPaint);
}
}
代码示例来源:origin: googlesamples/android-unsplash
@Override
public void draw(Canvas canvas) {
super.draw(canvas);
if (foreground != null) {
foreground.draw(canvas);
}
}
代码示例来源:origin: RameshBhupathi/ImagePicker-OLX
@Override
public void draw(Canvas canvas) {
super.draw(canvas);
if (foreground != null) {
foreground.draw(canvas);
}
}
代码示例来源:origin: w446108264/ScrollableLayout
@Override
public void draw(@NonNull Canvas canvas) {
super.draw(canvas);
if (foreground != null) {
foreground.draw(canvas);
}
}
}
代码示例来源:origin: stackoverflow.com
Bitmap bmpImage;
bmpImage = loadBitmapFromView(imgview1);
downloadImageinphone(bmpImage);
public static Bitmap loadBitmapFromView(ImageView v) {
Bitmap b = Bitmap.createBitmap(v.getWidth(), v.getHeight(),
Bitmap.Config.ARGB_8888);
Canvas c = new Canvas(b);
// v.layout(0, 0, v.getWidth(), v.getHeight());
v.draw(c);
return b;
}
代码示例来源:origin: klinker24/Android-BadgedImageView
@Override
public void draw(Canvas canvas) {
super.draw(canvas);
if (badge != null) {
if (!badgeBoundsSet) {
layoutBadge();
}
badge.draw(canvas);
}
}
代码示例来源:origin: jiangqqlmj/DragHelper4QQ
@Override
public void draw(Canvas canvas) {
Bitmap bitmap = Bitmap.createBitmap(getWidth(), getHeight(), Config.ARGB_8888);
Canvas canvas2 = new Canvas(bitmap);
super.draw(canvas2);
drawLiftUp(canvas2);
drawRightUp(canvas2);
drawLiftDown(canvas2);
drawRightDown(canvas2);
canvas.drawBitmap(bitmap, 0, 0, paint2);
bitmap.recycle();
}
代码示例来源:origin: wenchaosong/Banner
@Override
public void draw(Canvas canvas) {
Bitmap bitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888);
Canvas canvas2 = new Canvas(bitmap);
super.draw(canvas2);
drawLiftUp(canvas2);
drawRightUp(canvas2);
drawLiftDown(canvas2);
drawRightDown(canvas2);
canvas.drawBitmap(bitmap, 0, 0, paint2);
bitmap.recycle();
}
代码示例来源:origin: 1993hzw/Androids
@Override
public void draw(Canvas canvas) {
if (mIsIgnoreAlpha) { // 忽略透明度,只在不透明部分绘制遮罩
if (mIsShowMaskOnClick && isPressed()) {
// 绘制遮罩层
setDrawableColorFilter(mColorFilter);
} else {
setDrawableColorFilter(null);
}
}
super.draw(canvas);
}
内容来源于网络,如有侵权,请联系作者删除!