There are no files selected for viewing
Some generated files are not rendered by default. Learn more.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,56 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.constraint.ConstraintLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
<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.jianhuayang.hellome.MainActivity"> | ||
tools:context="com.example.yang.hellome.MainActivity"> | ||
|
||
|
||
<TextView | ||
android:id="@+id/textViewDisplay" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Hello World!" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
android:layout_marginLeft="25dp" | ||
android:layout_marginStart="25dp" | ||
android:layout_marginTop="25dp" | ||
android:text="Hello World" | ||
android:textSize="24sp" | ||
app:layout_constraintLeft_toLeftOf="parent" | ||
app:layout_constraintRight_toRightOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<TextView | ||
android:id="@+id/textView2" | ||
app:layout_constraintVertical_bias="0.502"/> | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="12dp" | ||
android:layout_marginStart="12dp" | ||
android:layout_marginTop="56dp" | ||
android:text="Name:" | ||
app:layout_constraintLeft_toLeftOf="@+id/textViewDisplay" | ||
app:layout_constraintTop_toBottomOf="@+id/textViewDisplay" /> | ||
|
||
<EditText | ||
android:id="@+id/editText2" | ||
android:id="@+id/editText" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="36dp" | ||
android:layout_marginStart="36dp" | ||
android:ems="10" | ||
android:hint="Type your name here" | ||
android:inputType="textPersonName" | ||
android:text="Name" | ||
tools:layout_editor_absoluteY="325dp" | ||
tools:layout_editor_absoluteX="85dp"/> | ||
app:layout_constraintBaseline_toBaselineOf="@+id/textView2" | ||
app:layout_constraintLeft_toRightOf="@+id/textView2" /> | ||
|
||
<Button | ||
android:id="@+id/button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="22dp" | ||
android:onClick="onButtonClick" | ||
android:text="Button" | ||
app:layout_constraintLeft_toLeftOf="parent" | ||
app:layout_constraintRight_toRightOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/editText" /> | ||
|
||
</android.support.constraint.ConstraintLayout> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.example.jianhuayang.hellome; | ||
package com.example.yang.hellome; | ||
|
||
import org.junit.Test; | ||
|
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.