Android Development #6

Open the Layout Editor

Divyendra Rajawat
1 min readMar 23, 2021

To get started, set up your workspace as follows:

  1. In the Project window, open app > res > layout > activity_main.xml.
  2. To make room for the Layout Editor, hide the Project window. To do so, select View > Tools Windows > Project, or just click Project on the left side of the Android Studio screen.
  3. If your editor shows the XML source, click the Design tab at the top right of the window.
  4. Click (Select Design Surface) and select Blueprint.
  5. Click (View Options) in the Layout Editor toolbar and make sure that Show All Constraints is checked.
  6. Make sure Auto-connect is off. A tooltip in the toolbar displays (Enable Autoconnection to Parent) when Auto-connect is off.
  7. Click (Default Margins) in the toolbar and select 16. If needed, you can adjust the margins for each view later.
  8. Click (Device for Preview) in the toolbar and select 5.5, 1440 × 2560, 560 dpi (Pixel XL).

That’s it for today guys…

--

--