Is it possible to add Linear Layout to canvas? I am having Draw button method to draw buttons. Now I want to add buttons from XML. So Is it possible to add XML to canvas?