Top "Ondraw" questions

onDraw is an event that is used in multiple languages/frameworks to notify the application that something needs to be (re)drawn.

Android Multiple SurfaceViews

I'm trying to work with 3 SurfaceViews on one screen, one on top half (BoardView), one on bottom half (StatusView), and …

android surfaceview ondraw
Android custom view Bitmap memory leak

I've got a custom view in which I need to draw two bitmaps, one is a background, representing the image …

android out-of-memory ondraw custom-view
Android: Define onDraw Canvas Size

I've removed my old code now as it wasn't working as I intended. I was trying to use the onDraw …

android android-layout android-canvas ondraw
How to animate gradient?

How to animate gradient from color#1 to color#2? Something similar to I'm planning to use it as health-bar for unit (…

android animation gradient android-custom-view ondraw
ImageView: onDraw method draws "behind" the image background, not at the top

Here is the code of a simple extension of an ImageView that allow the user to draw with the finger. …

android imageview ondraw
How to draw triangle shape and add it into relative or linear layout android

I am developing small android application in which I m using my custom linear layout class. In that class i …

android android-linearlayout ondraw
Android Canvas and Hardware Acceleration?

Hi all I was wondering if it was possible to draw to an offscreen Canvas / Bitmap and take advantage of …

android ondraw hardware-acceleration
Custom Widget using LinearLayout not getting onDraw()

I'm creating a custom widget by extending LinearLayout: public class MyWidget extends LinearLayout { private static Paint PAINT = new Paint(Paint.…

android android-widget android-linearlayout ondraw
Android SurfaceView not showing onDraw

For simpleness of the question, I'm drawing an integer on a SurfaceView which increases by 1 every draw. The increasing actually …

android surfaceview ondraw
Android: Drawing an arc inside a circle

I'm trying to draw an arc inside a circle to represent the temperature, but I'm having a difficult time achieving …

android android-canvas android-custom-view ondraw