Android and layouts

0

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?

    
asked by anonymous 04.12.2014 / 13:32

1 answer

1

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.

    
04.12.2014 / 13:35