The Android Java Canvas (android.graphics.Canvas)

learn more…| top users | synonyms

-1
votes
1answer
30 views

How to send the value of the MainActivity?

I'm drawing a rectangle using ScannerOverlay and activity_main but I can not do this when I want to send a value from MainActivity. In myMainActivity I want to send a value by creating a method. x and ...
0
votes
1answer
22 views

Android never call method onCreateThumbnail

Based on Android documentation, method onCreateThumbnail is called before pausing the activity, and should draw into outBitmap the imagery for the desired thumbnail in the dimensions of that bitmap. ...
0
votes
0answers
25 views

adding customDrawingview ino scrollView

i'm pretty much a new in android development. I try to draw line based on touch event. It work well with out scrollview. But, when I use scrollView, it just doesn't work. I read some question and ...
0
votes
1answer
26 views

How to erase image with undo and redo functionality in android?

I am able to erase image by converting it in to bitmap and setting it in canvas using following code. But i am not able to set undo and redo functionality. Following code change the source bitmap so ...
0
votes
1answer
18 views

Bitmap doesn't seem to update when I try to rotate it in my canvas

I have an object on my canvas that I need to rotate based on user input. When the user touches the screen, and then moves their finger, the app calculates the angle between the two touch events, and ...
-4
votes
0answers
17 views

Create an Archery Shooting Board [closed]

i need a solution to create an Archery Shooting Board in Android such as this pics :enter image description hereenter image description herei don't want create an Application like above ! just ...
0
votes
0answers
30 views

How to Create Archery Shooting range in Android [closed]

enter image description here enter image description hereHi guys , I wanna create a Archery Board Shooting to store score of arrows .how to work :after touching an area by user a point place ...
1
vote
1answer
38 views

Draw one shape in another shape

First I will explain what I am trying to achieve. I am trying to achieve cropping functionality. For that, I am drawing one rectangle on canvas and then trying to draw heart inside rectangle. So If ...
-5
votes
0answers
28 views

How to know if user done colouring the image?

I am creating a colouring app for kids, and I want that if user has completed colouring, then show a text "GOOD JOB" or something like that. How do I know that user has completed colouring that image?...
0
votes
1answer
37 views

Drawing image with gradient tint and round corners

I'm trying to set a background on a view, which should be an image with a single rounded corner and a gradient tint overlayedI feel like I'm close, I'm just missing the rounded corner. I have made a ...
-1
votes
2answers
47 views

how to draw rectangle canvas?

In this example code I give a nice square in the form I want. canvas.drawRect (100, 300, 600, 800, paint); values work. But what I want is to call these values from the Activity class. So I want to ...
0
votes
1answer
47 views

Drawing line or connection between Views in Canvas

I am trying to achieve something like in below image. I have several Buttons around a View and would like to connect them using Canvas on their background. I am able to place the Buttons and View in a ...
1
vote
1answer
31 views

individual rounded corners (NOT all corners)

I'm trying to get rounded corners on the TOP corners of a bitmap only. Using RoundedBitmapDrawable i can get rounded corners on all corners but how can i get it on only the top ones?Code i'm using ...
-2
votes
1answer
23 views

Canvas added to activity_main.xml crashes my app

My problem:I have been trying to make an app where a ball bounces around based on orientation change. I had some problems with that so I started this project differently. The ball moves up/down/...
0
votes
0answers
43 views

Capture image using dynamic co-ordinates through the camera

I am making a camera based application, where I put a rectangular view over the camera.When I capture an image using new Camera.PictureCallback(), I cropped that image so as it will get the part of ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,