Top "Android-canvas" questions

The Android Java Canvas (android.

Android canvas draw rectangle

how to draw empty rectangle with etc. borderWidth=3 and borderColor=black and part within rectangle don't have content or color. …

android android-canvas
How to draw circle by canvas in Android?

I want to draw circle by canvas. Here is my code: [MyActivity.java]: public class MyActivity extends Activity { public void …

java android android-canvas
Android Canvas.drawText

I have a view, I'm drawing with the Canvas object in the onDraw(Canvas canvas) method. My code is: Paint …

android android-canvas drawtext
Drawable image on a canvas

How can I get an image to the canvas in order to draw on that image?

android android-canvas android-drawable
Android, canvas: How do I clear (delete contents of) a canvas (= bitmaps), living in a surfaceView?

In order to make a simple game, I used a template that draws a canvas with bitmaps like this: private …

android android-canvas surfaceview
Draw in Canvas by finger, Android

I need to build a project for drawing on canvas by fingers, to get the touch event and motion event …

android drawing touch android-canvas
Creating an empty bitmap and drawing though canvas in Android

I'd like to create an empty bitmap and set a canvas to that bitmap and then draw any shape on …

android bitmap drawing android-canvas
Android Center text on canvas

I'm trying to display a text using the code below. The problem is that the text is not centered horizontally. …

java android android-activity android-canvas drawtext
Measuring text height to be drawn on Canvas ( Android )

Any straight forward way to measure the height of text? The way I am doing it now is by using …

android graphics view android-canvas
How to draw a filled triangle in android canvas?

So I'm drawing this triangle in android maps using the code below in my draw method: paint.setARGB(255, 153, 29, 29); paint.setStyle(…

java android google-maps android-canvas