title: Strange consequence when use Constraint Layout in Android Studio
body: <p>I'm in the beginning of Android Development. Recently, to practice layout designing I'm trying to build a simulation of simple calculator. I created and placed the views (Buttons, EditTexts) in the Design tab. Then I got stuck in "This view is not constrained" error so I searched on StackOverflow and finally found the solution is to right-click on the widget -> Constraint Layout -> Infer Constraints. But when I did it, those views in my program changed badly and I couldn't modify them to original places and sizes. How can I solve the error without change the views's locations and sizes?</p>
  
  <p>This is my calculator before use Constraint Layout:</p>
  
  <p><strong>before_constraint:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/pqBQx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pqBQx.png" alt="enter image description here"></a></p>
  
  <p>And this is my calculator after use it:</p>
  
  <p><strong>after_constraint:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/7TVjN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7TVjN.png" alt="enter image description here"></a></p>
  
  <p>And this is my source code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout 
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  tools:context="com.huy9515gmail.helloworld.MainActivity"
  tools:layout_editor_absoluteY="81dp"
  tools:layout_editor_absoluteX="0dp"&gt;
  
  
  &lt;Button
      android:id="@+id/button10"
      android:layout_width="53dp"
      android:layout_height="45dp"
      android:text="0"
      tools:layout_editor_absoluteX="87dp"
      tools:layout_editor_absoluteY="186dp" /&gt;
  
  &lt;Button
      android:id="@+id/button7"
      android:layout_width="53dp"
      android:layout_height="45dp"
      android:text="7"
      tools:layout_editor_absoluteX="34dp"
      tools:layout_editor_absoluteY="141dp" /&gt;
  
  &lt;Button
      android:id="@+id/button8"
      android:layout_width="53dp"
      android:layout_height="45dp"
      android:text="8"
      tools:layout_editor_absoluteX="87dp"
      tools:layout_editor_absoluteY="141dp" /&gt;
  
  &lt;Button
      android:id="@+id/button9"
      android:layout_width="53dp"
      android:layout_height="45dp"
      android:text="9"
      tools:layout_editor_absoluteX="140dp"
      tools:layout_editor_absoluteY="141dp" /&gt;
  
  &lt;TextView
      android:id="@+id/textView"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="My First Calculator"
      tools:layout_editor_absoluteX="134dp"
      tools:layout_editor_absoluteY="16dp" /&gt;
  
  &lt;Button
      android:id="@+id/button"
      android:layout_width="53dp"
      android:layout_height="45dp"
      android:text="2"
      tools:layout_editor_absoluteX="87dp"
      tools:layout_editor_absoluteY="51dp" /&gt;
  
  &lt;Button
      android:id="@+id/button3"
      android:layout_width="53dp"
      android:layout_height="45dp"
      android:text="3"
      tools:layout_editor_absoluteX="140dp"
      tools:layout_editor_absoluteY="51dp" /&gt;
  
  &lt;Button
      android:id="@+id/button4"
      android:layout_width="53dp"
      android:layout_height="45dp"
      android:text="/"
      tools:layout_editor_absoluteX="281dp"
      tools:layout_editor_absoluteY="96dp" /&gt;
  
  &lt;Button
      android:id="@+id/button14"
      android:layout_width="53dp"
      android:layout_height="45dp"
      android:text="x"
      tools:layout_editor_absoluteX="228dp"
      tools:layout_editor_absoluteY="96dp" /&gt;
  
  &lt;Button
      android:id="@+id/button13"
      android:layout_width="53dp"
      android:layout_height="45dp"
      android:text="-"
      tools:layout_editor_absoluteX="281dp"
      tools:layout_editor_absoluteY="51dp" /&gt;
  
  &lt;Button
      android:id="@+id/button12"
      android:layout_width="53dp"
      android:layout_height="45dp"
      android:text="+"
      tools:layout_editor_absoluteX="228dp"
      tools:layout_editor_absoluteY="51dp" /&gt;
  
  &lt;Button
      android:id="@+id/button11"
      android:layout_width="106dp"
      android:layout_height="40dp"
      android:text="Delete"
      tools:layout_editor_absoluteX="228dp"
      tools:layout_editor_absoluteY="210dp" /&gt;
  
  &lt;Button
      android:id="@+id/button16"
      android:layout_width="106dp"
      android:layout_height="40dp"
      android:text="Calculate"
      tools:layout_editor_absoluteX="228dp"
      tools:layout_editor_absoluteY="170dp" /&gt;
  
  &lt;Button
      android:id="@+id/button15"
      android:layout_width="53dp"
      android:layout_height="45dp"
      android:text="1"
      tools:layout_editor_absoluteX="34dp"
      tools:layout_editor_absoluteY="51dp" /&gt;
  
  &lt;Button
      android:id="@+id/button2"
      android:layout_width="53dp"
      android:layout_height="45dp"
      android:text="4"
      tools:layout_editor_absoluteX="34dp"
      tools:layout_editor_absoluteY="96dp" /&gt;
  
  &lt;Button
      android:id="@+id/button5"
      android:layout_width="53dp"
      android:layout_height="45dp"
      android:text="5"
      tools:layout_editor_absoluteX="87dp"
      tools:layout_editor_absoluteY="96dp" /&gt;
  
  &lt;Button
      android:id="@+id/button6"
      android:layout_width="53dp"
      android:layout_height="45dp"
      android:text="6"
      tools:layout_editor_absoluteX="140dp"
      tools:layout_editor_absoluteY="96dp" /&gt;
  
  &lt;EditText
      android:id="@+id/editText"
      android:layout_width="310dp"
      android:layout_height="98dp"
      android:ems="10"
      android:inputType="textPersonName"
      tools:layout_editor_absoluteX="37dp"
      tools:layout_editor_absoluteY="327dp" /&gt;
  </code></pre>
  
  <p></p>