I’ve used the this reference to display the line graph
By above code, graph gets displayed on separate view.
I want to display it in particular area of view and not as new view. So, I used this snippet
layout.addView(graphView, 200, 250);
This works fine but the issue is how do I specify the starting co-ordinates for this view.
It’s getting placed at left top. I want it at some particular position.
THANKS IN ADVANCE !!
After adding view in layout, try using LayoutParams to set attributes of it. I think that way you can set X and Y co-ordinate of view.