I have created a custom view named Graphview . Here is the structure for the GraphView class.
Graphview
public class GraphView extends View { public
On Kotlin you can set width and height of any view directly using their virtual properties:
someView.layoutParams.width = 100 someView.layoutParams.height = 200