I have a GraphicsView class that extends from the View class and I want to add this GraphicsView class to the main layout in my projec
GraphicsView
View
you need to do this:
LinearLayout v = (LinearView) findViewById(R.id.linnnnlayout); GraphicsView myView = new myGraphicsView(this); v.addView(myView);