I started programming for android a short time ago but I have some doubts about the layouts. how can I make a canvas without layout and tell me where each object will be drawn?
I started programming for android a short time ago but I have some doubts about the layouts. how can I make a canvas without layout and tell me where each object will be drawn?
Do you want to know if you can make a canvas without at least the layout XML? If so, the answer is NO!
You can create an empty XML and add it via code, but at least one .xml layout should exist.
UPDATE ~
Paul, it is possible, yes, just call setContentView by passing a ViewGroup any and go adding Widgets and View's dynamically. - Wakim 1 min ago
It's really possible, but I do not think it's a good idea.