Remove this line:

super.onDraw(canvas);



On Thursday, August 9, 2012 10:48:39 PM UTC-5, hendra uswandy wrote:
>
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to