How I can draw a sine wave on canvas inside an Image View in android, I need it to be draw in the center of the Image View?
could you help me please?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use Canvas.drawPath to draw any path on your canvas. In this case, the path is your sine, so you have to step through the function values of the sine with a small delta and add each point to the path with Path.lineTo.