android-canvas
Android Canvas - Callbacks to draw a dot and reposition it based on GPS movement
I am new to android and i\'ve just been looking into the canvas API. I currently have an activity class called \"MyMap\" and a ViewClass called \"MapView\" (which extends view).[详细]
2023-03-19 09:23 分类:问答Divide String over 2 custom Rect shapes in onDraw();
I\'m having issues dividing my String object over 2 Rect shapes. Firstly i have no idea how to set canvas.drawtext to a specified region.[详细]
2023-03-17 13:32 分类:问答How do i draw a semitransparent white line?
I have the hexcode as #70ffffff for the color and all i do is canvas.drawline() and paint has the color set to that hex.[详细]
2023-03-17 03:08 分类:问答Bitmap is not on canvas after drawing
I am drawing a Bitmap with canvas.drawBitmap(bmp, 0, 0, null); to my canvas and the bitmap will just not show. Any ideas?[详细]
2023-03-17 02:43 分类:问答Android ImageView and Bitmap on canvas don't have the same size
I have a Bitmap image in my ressources. When i draw it using an ImageView, it doesn\'t have the same size as when I draw it on the canvas using Drawbitmap.[详细]
2023-03-17 02:42 分类:问答drawBitmap takes too long
Hello here is the code: URL uri = new URL(photoUrl); URLConnection connection = uri.openConnection(); Log.i(TAG, \"connecting...\");[详细]
2023-03-17 02:26 分类:问答Draw text on canvas and make it visible on screen
This code was supposed to convert text to image public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);[详细]
2023-03-16 19:31 分类:问答Making my canvas scroll-able without a major overhaul
I\'m in the process of developing a 2-D game for android which primarily i\'m using as an experience to learn the in\'s and out\'s of programming for android apps, so naturally i run into a lot of puz[详细]
2023-03-14 05:52 分类:问答App not displaying correctly on Samsung Transform
My game, Hidden Treasures, has been on the market over two months now. Recently a customer presented 开发者_Go百科a new problem that has never happened before.[详细]
2023-03-13 15:56 分类:问答Fit a rectangle around a string on an Android Canvas
So I use Canvas.drawText to draw some string on a Canvas. The issue is that I want to draw a rectangle before it so that the text appears centred onto the rectangle. But I hit a re开发者_Go百科al prob[详细]
2023-03-12 10:28 分类:问答