Android studio Layout Tip 1
mike dg
Posted on June 15, 2020
I was recently asked "When coding layouts for android apps, do you use pure XML or the editor (drag and drop)"
I do both.
A mixture of both results in the highest producivity for me.
I'll often, somewhat haphazardly, drag and drop to get the basics comoponents in the relatively correct spots in the editor. Then, visually wire up the basic constraints, and then in code fine tune the remaining constraints to actually get everything lined up at run time.
One tip for making drag-and-drop go quicker, is to use the filtering capability of Android Studio and the rest of JetBrains IDEs.
If you type in the View palette, you'll see that it filters to what ever you type.
Posted on June 15, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.