• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

This view is not constrained vertically

Ranch Hand
Posts: 570
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just update Android Studio and playing around with Constraint Layout. There are some errors in xml attribute.

This view is not constrained vertically: at runtime it will jump to the left unless you add a vertical constraint less... (Ctrl+F1)  The
layout editor allows you to place widgets anywhere on the canvas, and
it records the current position with designtime attributes (such as layout_editor_absoluteX.) These attributes are not applied at runtime,
so if you push your layout on a device, the widgets may appear in a different location than shown in the editor. To fix this, make sure a
widget has both horizontal and vertical constraints by dragging from the edge connections.

I follow these steps:  but I can't find `Constraint Layout` .

Posts: 1868
Android IntelliJ IDE MySQL Database Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Right clicking on the view in Design View should give you the option as shown in the first attachment.

That being said it looks like from your screen shot that you are already using the Constrained View, so you will not get the option to convert it to that type of view.

I suspect that if you use the toolbar in Android Studio (shown in my second attachment) that you may be able to constrain your view.
However, the other option is to edit the XML directly by hand.

I have no doubts that there are issues with Android Studio, however it does appear as though the developers of Android Studio are constantly working on making it better.
I think that there is already version 2.4 is beta and 3.0 is in alpha, but I could be wrong.
[Thumbnail for 2017-10-13_08-14-05.png]
[Thumbnail for studio64_2017-10-13_08-20-09.png]
    Bookmark Topic Watch Topic
  • New Topic