I am trying to make a view like this. I know how to make it curve, circle etc like divider. But how I can make the same type of waves .I am able to make something like this app? But I want to use in as a view.
Asked
Active
Viewed 1,680 times
1
-
refer to http://stackoverflow.com/a/6501741/4321808 – Ravi Theja Aug 14 '16 at 10:22
-
I tried that but I don't find any example – SAVVY Aug 14 '16 at 10:25
-
And one more point I want to display it as sine wave lines not like this http://stackoverflow.com/questions/19519856/fill-sine-graph-android/19520120#19520120 – SAVVY Aug 14 '16 at 10:27
-
i think you need to combine a few frequencies to obtain those waves, do you still need it? – lelloman Aug 17 '16 at 06:23
-
I am getting the able to get the trigonometric waves but how to get this ??@lelloman – SAVVY Aug 17 '16 at 06:26
1 Answers
0
checkout this gist.it is a sample of basic sine wave but you can make changes as you need.

Ravi Theja
- 3,371
- 1
- 22
- 34
-
add the view in your xml.The only problem is it is static not dynamic. – Ravi Theja Aug 14 '16 at 13:07
-
-
SineView sineview = new SineView(context); you can use any of the constructors if you want to programatically call it. – Ravi Theja Aug 14 '16 at 18:08