Setting an ImageView resource as a Drawable?

If you implement the draw method of a custom ImageView you can just draw a tint over the image. For a nice rosy sheen try: Override protected void onDraw( Canvas canvas ) { super. OnDraw( canvas ); Rect frame; Paint paint = new Paint(); paint.

SetStyle( Style. FILL ); paint. SetARGB( 102 , 255 , 51 , 51 ); frame = new Rect( 0, 0, getWidth(), getHeight() ); canvas.

DrawRect( frame , paint ); }.

If you implement the draw method of a custom ImageView you can just draw a tint over the image. For a nice rosy sheen try: @Override protected void onDraw( Canvas canvas ) { super. OnDraw( canvas ); Rect frame; Paint paint = new Paint(); paint.

SetStyle( Style. FILL ); paint. SetARGB( 102 , 255 , 51 , 51 ); frame = new Rect( 0, 0, getWidth(), getHeight() ); canvas.

DrawRect( frame , paint ); }.

I'm not very familiar with all this. Could I still make them with the rounded corners that I had before? – Tarmon May 2 '10 at 22:20.

When I try and set the Drawable as the background of the ImageView it displays but won't let me set any padding. I realized I need to set the ImageView image via the setImageDrawable() function in order to be able to set the padding. The problem I am running into is that when I set it via the setImageDrawable() function nothing is displayed.

This results in a space for the ImageView but no image.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions