[android-developers] [ASK] drawbitmap not draw entire bitmap
Hi,
i create customImageView Class that using for gridview
in ondraw(Canvas canvas) method
drawbitmap not draw entire bitmap ( just 5pixel from top image )
this is my customimageview class
public class CustomView extends ImageView {
private Bitmap thumbs;
private String name;
public CustomView(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
protected void onDraw(Canvas canvas) {
Paint paint = new Paint();
canvas.drawBitmap(thumbs, 0, 0, paint);
canvas.drawText("x", 0, 0, paint);
super.onDraw(canvas);
}
public void setImg(Bitmap bm) {
this.thumbs = bm;
}
}
thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home