android-canvas
Android How to create onClick events in Canvas onDraw method
i\'ve searched around and still can\'t find a good answer. I have made my own class that extends an imageView and in the onDraw() method i am using canvas to draw circles onto my image.[详细]
2023-03-23 01:15 分类:问答android canvas - can i have multiple draw methods?
I have made my own canvas class which extends an imageView. My onDraw() method draws out the users gps position and I keep calling this onDraw method every time the user moves. My problem is I also wa[详细]
2023-03-22 23:30 分类:问答implement canvas android
I am trying to implement the canvas feature in ios for android. The ios canvas has a property known as drawChildren that is basically an array that manages drawing objects that can be added/removed by[详细]
2023-03-22 11:32 分类:问答draw an image in the center of another rectangle using canvas
In my view I have a big rectangle, the rectangle can move. When the rectangle moves to someplace, I want to draw image in the center of the big rectangle. My question is that I cannot put the center o[详细]
2023-03-21 23:11 分类:问答Draw sprite on canvas in Android or Linux
For programming sprites, as a rule, rather the four functions for draw on canvas: Draw the bitmap in the coordinates (X, Y)[详细]
2023-03-21 13:20 分类:问答Android get Bitmap Rect (left, top, right, bottom) on a Canvas
I am drawing a Bitmap over a Canvas and then doing some scaling on it, pretty simple, just using canvas.scale(int, int, pivot, pivot), and then, after the scaling is completed, I need to get the Bitma[详细]
2023-03-21 03:58 分类:问答Poor performance of Android Canvas.drawBitmap - switch to OpenGL?
I\'m porting a 2D action game from Windows Phone 7 (developed in XNA 4.开发者_运维知识库0) over to Android. I\'m using a lot of Canvas.drawBitmap() calls - around 200-300 per frame update - with diffe[详细]
2023-03-20 17:57 分类:问答Android: Drawing to canvas, way to make bottom left correspond to (0,0)?
I\'m trying to write a graph class I can use in Android(I\'m aware pre-made ones exist), but converting all of my coordinates would be a pain. Is there an easy way to make the screen coordinates s开发[详细]
2023-03-20 06:12 分类:问答Set OnClickListener to View drawing a Bitmap painted by Canvas
I do not get a grip on solving the issue. I have manually placed two images on the screen. I would like to have an onClick event handling for each of it.[详细]
2023-03-20 04:34 分类:问答onLocationChanged call the onDraw method in my custom view
I have a MapImageViewer Activity class that has methods for checking the phones gps location. This activity then calls a custom view of mine called MapCanvas - where the constructor takes the latitude[详细]
2023-03-19 15:16 分类:问答