Questions tagged [android-paint]
68 questions
0
votes
1 answer
How do I paint over an Imageview?
I have an ImageView which I drew four lines. Now I want the user to be able to draw over the image. How can this be achieved?
On the other solution I saw that we have to add another view, a custom view, this solution is not suited for this…
user6332149
0
votes
1 answer
How to initialize circular animated timer at specific position in android
The timer always starts from the top, and I want it to start from some initialized position with some part already drawn. I took reference from this tutorial.
This is my MainActivity:
public class MainActivity extends AppCompatActivity {
…

Himanshu Sharma
- 13
- 4
0
votes
1 answer
Listener for onDraw method
Following is my onDraw method.
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
if(inte < listOfPoints.size()){
canvas.drawLine(listOfPoints.get(0).x, listOfPoints.get(0).y,…
user3600801
0
votes
0 answers
Wrong location touched in an onDraw method
I have a bitmap drawn to a canvas that I want to be able to paint transparent onto. When I move my finger to do the drawing, the paint does not paint to where my finger is. Instead it paints below and to the right of where I am touching.
@Override
…
user6922041
0
votes
1 answer
Custom Brush with Undo/Redo operation in Android Canvas
I want to implement a canvas drawing application with custom brush & undo/redo operation. First of all my code works perfectly without using the custom brush (including the undo/redo operation). According to this answer How to make custom brush for…

Falling Into Infinity
- 697
- 3
- 13
- 34
-2
votes
1 answer
How can I fingerpaint with touch over an image loaded by picasso
I am creating an app that pulls images from urls and puts them into a recyclerview. The user can then access those images and view it fullscreen. This is achieved with Picasso. I would now like the ability to fingerpaint over the image loaded with…

Space junkie
- 17
- 4
-2
votes
1 answer
Paint attributes are not working on Canvas
I am trying to create the white impact font with black outline (aka "The Meme Font"). I applied the logic for both texts that are drawn on Canvas but it works only for one of them. Here is a result to show what I'm talking about:
Here is my…

Andros Adrianopolos
- 664
- 5
- 20
-3
votes
1 answer
How to draw the same png icon in different colors?
I have an image template that contains on the top of a transparent background a white only icon. How can I draw this icon with differents color (ex: blue, yellow, etc.)? For example I would like to print it in yellow at someplace and in blue at…

zeus
- 12,173
- 9
- 63
- 184