Thanks Marina !  I clicked the "infer constraints" button. And it worked. 
God bless )

On Thursday, August 3, 2017 at 10:14:40 AM UTC-4, Marina Cuello wrote:
>
> When a property starts with "tools:" it means it only works on the editor. 
> It's useful when you will modify the position or visibility of a view 
> programatically or  you want to use different color backgrounds to play 
> around with images with transparency. But it will not be reflected on your 
> app.
> You need to use the "Infer constraints" option for the editor to create 
> the real constraints.
>
> Marina
>
> On Wed, Aug 2, 2017 at 12:03 AM, Tony Cardinal <[email protected] 
> <javascript:>> wrote:
>
>> hello,
>>  I created a simple app with 2 checkboxes a button and a text field. And 
>> I see all of these widgets on top of each other on the upper left hand 
>> corner of the screen when I run the app. In the design tab of android 
>> studio, these widgets are spaced one on top of the other. What am I doing 
>> wrong? Thank you for your help in advance. Here is the code:
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <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.example.me.a01_05_01.MainActivity">
>>
>>     <TextView
>>         android:layout_width="wrap_content"
>>         android:layout_height="wrap_content"
>>         android:text="Hello World!"
>>         app:layout_constraintBottom_toBottomOf="parent"
>>         app:layout_constraintLeft_toLeftOf="parent"
>>         app:layout_constraintRight_toRightOf="parent"
>>         app:layout_constraintTop_toTopOf="parent" />
>>
>>     <CheckBox
>>         android:id="@+id/checkBox"
>>         android:layout_width="wrap_content"
>>         android:layout_height="wrap_content"
>>         android:text="CheckBox"
>>         tools:layout_editor_absoluteX="32dp"
>>         tools:layout_editor_absoluteY="47dp" />
>>
>>     <CheckBox
>>         android:id="@+id/checkBox2"
>>         android:layout_width="wrap_content"
>>         android:layout_height="wrap_content"
>>         android:text="CheckBox"
>>         tools:layout_editor_absoluteX="32dp"
>>         tools:layout_editor_absoluteY="99dp" />
>>
>>     <Button
>>         android:id="@+id/button"
>>         android:layout_width="wrap_content"
>>         android:layout_height="wrap_content"
>>         android:text="Button"
>>         tools:layout_editor_absoluteX="48dp"
>>         tools:layout_editor_absoluteY="416dp" />
>>
>>     <TextView
>>         android:id="@+id/textView"
>>         android:layout_width="wrap_content"
>>         android:layout_height="wrap_content"
>>         android:text="TextView"
>>         tools:layout_editor_absoluteX="57dp"
>>         tools:layout_editor_absoluteY="292dp" />
>>
>> </android.support.constraint.ConstraintLayout>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-developers/52044978-8634-4d62-a84c-b48383d2ed31%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/android-developers/52044978-8634-4d62-a84c-b48383d2ed31%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/8ac902f4-b677-49a6-aae6-5a5ffbe810d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to