damageme123
Lurker
I build a simple clicker application
here is how it looks like in design view
Here is how it looks like in text view
But when i complied and view on my device all i see is this messed up
I came from a Visual Studio family and this is my first time so can anyone tell me what i am missing out here?
Any suggestion are most welcome.
here is how it looks like in design view
Here is how it looks like in text view
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.ay078.test.Atsu_YIm">
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
tools:layout_editor_absoluteX="188dp"
tools:layout_editor_absoluteY="44dp" />
<Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Click"
tools:layout_editor_absoluteX="147dp"
tools:layout_editor_absoluteY="107dp" />
<Button
android:id="@+id/button4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Reset"
tools:layout_editor_absoluteX="147dp"
tools:layout_editor_absoluteY="194dp" />
</android.support.constraint.ConstraintLayout>
But when i complied and view on my device all i see is this messed up
I came from a Visual Studio family and this is my first time so can anyone tell me what i am missing out here?
Any suggestion are most welcome.
damn it was just about inserting RelativeLayout under my .xml 