Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Korvax55518yI use both. Drag and drop to do the basic thing and then you can go to the xml editor and add extra things since its easier to look at the code and edit it, but the drag and drog can help you save timr rewriting all those stuff again and again
-
No problem at all. It totally depends on your preferences. But i recommend using the source editor because it is IMPOSSIBLE to make complicated layouts with the layout editor.
-
thecode24698yI prefer the xml way. Though it'll take lot of time and practice before you can be perfect.
-
I generally treat my apps like a game.
I will create a main layout with drag and drop then that will launch game loop, and that doesn't require either XML or drag and drop. Just build it programmatically so there no device size issues. -
Sucks at margins(esp heights)?
If it isnt for production, use
<Space
android:width="match_parent"
android:height="NUMBERsp"
// 20sp always works right
</Space> -
mukund3798y@CozyPlanes How to progress? Drag drop element and then later edit their alignment and other things in the editor?
-
mukund3798y@DavidKevork Should I keep practicing both side by side or essentially focus on writing xml?
-
Korvax55518y@mukund I also dont know xml alot but when you use drag and drop and learn the xml and play with the xml you will be better at the xml and prefer xml over editor but sometimes when you are inserting buttons or inputs you can save some time and typing by using the drag and drop and edit the rest of it in xml, since when using the xml you feel easier to edit and customize it the way you want rather than using the drag part and scrolling to be able to edit
-
@mukund explore some stuff.
Do stuffs. Wasting 1 hour doing things will be very helpful. Just turn on Preview button on the right vertical tab. -
thecode24698y@mukund you type a <I and then press ctrl+Space and it'd suggest you by itself. Press enter. Set the layout_width and layout_height properties as per your requirement, followed by any additional properties you need to add to it.
Related Rants
Not sure if I am Allowed to ask general questions here but here's the thing. I just began making Android apps. I have made a few basic of them and I use constraint layout via the layout editor in Android Studio. Is it okay? Do professionals do the same or do they actually type in the xml code?
undefined
android studio
layout
android dev