一个Image怎么实现同时显示多张图片
如图:就是某信的一个功能android --------------------编程问答-------------------- android里面的截图 --------------------编程问答-------------------- 重写,覆盖onDraw,自己画 --------------------编程问答--------------------
给个提示 --------------------编程问答--------------------
public class MyImageView extends ImageView {
public Bitmap[] mImgs;
private Paint mPaint;
public MyImageView(Context context, AttributeSet attrs) {
super(context, attrs);
mPaint = new Paint();
}
public void setImages(Bitmap[] res) {
mImgs = res;
invalidate();
}
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
for (int i = 0; i < mImgs.length; i++) {
canvas.drawBitmap(mImgs[i], left, top, mPaint);
}
}
}
只是一个思路哈~~
补充:移动开发 , Android