Home > Mobile >  Consult, the android interface is to use the android studio draw, or directly with the XML code writ
Consult, the android interface is to use the android studio draw, or directly with the XML code writ

Time:11-19

Consult, the android interface is to use the android studio draw, or directly with the XML code written?
Why many textbooks are introduced XML isn't draw out more convenient with the studio?

CodePudding user response:

Studio painted? How to draw?

CodePudding user response:

Is through the control interface, painted, then write in with the Activity controls the corresponding Layout XML file

CodePudding user response:

With the constraints of the layout, pure code to write the picture, there is no XML

CodePudding user response:

Good interface design tools, design can directly export XML

CodePudding user response:

reference 1/f, set up green _ response:
studio painted? How to draw?


Android Studio to use the mouse to drag their feet can draw the text box, button... , such as XML generated automatically,

CodePudding user response:

reference qq_29690579 reply: 3/f
with the constraints of the layout, pure code, don't use XML

Like android is recommended to separate interface and logic code, all written in XML interface, the code just call,

CodePudding user response:

reference 5 floor qq_16774199 reply:
Quote: refer to 1st floor stand green _ response:
studio painted? How to draw?


Android Studio to use the mouse to drag their feet can draw the text box, button... Automatically generated, such as XML,

Don't like drag controls, can feel to write better custom layout, layout, drag controls always feel short of effect, afraid it generated code is bad, all kinds of warning or not the best way

CodePudding user response:

Write HTML, CSS??????

CodePudding user response:

Generally or handwritten XML files, are all around us to do so, drag the less,

CodePudding user response:

All Settings in the layout, the late can also be a new thread to change the layout,