forked from hzuapps/android-labs-2019
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
284 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?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" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@drawable/c" | ||
tools:context=".MainActivity"> | ||
|
||
<TextView | ||
android:id="@+id/text2" | ||
android:layout_width="47dp" | ||
android:layout_height="57dp" | ||
android:drawableTop="@drawable/b" | ||
tools:ignore="MissingConstraints" | ||
tools:layout_editor_absoluteY="0dp" | ||
tools:layout_editor_absoluteX="0dp"/> | ||
|
||
<Button | ||
android:id="@+id/button1" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="提醒" | ||
android:onClick="click1" | ||
app:layout_constraintLeft_toRightOf="@+id/text2" | ||
tools:ignore="MissingConstraints,OnClick" | ||
tools:layout_editor_absoluteY="0dp" | ||
android:layout_marginLeft="8dp"/> | ||
|
||
<Button | ||
android:id="@+id/button2" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="添加" | ||
android:onClick="click2" | ||
app:layout_constraintLeft_toRightOf="@+id/button1" | ||
tools:ignore="MissingConstraints,OnClick"/> | ||
|
||
<Button | ||
android:id="@+id/button3" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="编辑" | ||
android:onClick="click3" | ||
app:layout_constraintLeft_toRightOf="@+id/button2" | ||
tools:ignore="MissingConstraints,OnClick"/> | ||
|
||
<Button | ||
android:id="@+id/button4" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="删除" | ||
android:onClick="click4" | ||
app:layout_constraintLeft_toRightOf="@+id/button3" | ||
tools:ignore="MissingConstraints,OnClick"/> | ||
</android.support.constraint.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?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" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".MainActivity1"> | ||
|
||
<TextView | ||
android:id="@+id/text2" | ||
android:layout_width="410dp" | ||
android:layout_height="58dp" | ||
android:text="提醒:设置提醒" | ||
android:textSize="40dp" | ||
tools:ignore="MissingConstraints" | ||
tools:layout_editor_absoluteY="5dp" | ||
tools:layout_editor_absoluteX="0dp"/> | ||
|
||
</android.support.constraint.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
<?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" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".MainActivity2"> | ||
|
||
<TextView | ||
android:id="@+id/text2" | ||
android:layout_width="0dp" | ||
android:layout_height="0dp" | ||
android:text="添加:添加生日管理人" | ||
android:textSize="40dp" | ||
tools:ignore="MissingConstraints" | ||
android:layout_marginTop="150dp" | ||
android:layout_marginBottom="288dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintBottom_toTopOf="@+id/radioGroup" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintHorizontal_bias="0.0"/> | ||
|
||
|
||
<LinearLayout | ||
android:layout_below="@id/text2" | ||
android:id="@+id/tj_name" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_centerHorizontal="true" | ||
android:orientation="horizontal" | ||
tools:ignore="MissingConstraints,Orientation" | ||
app:layout_constraintTop_toBottomOf="@+id/text2" | ||
android:layout_marginBottom="10dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintBottom_toTopOf="@+id/tj_day" | ||
app:layout_constraintStart_toStartOf="parent"> | ||
|
||
<TextView | ||
|
||
android:layout_height="80dp" | ||
android:layout_width="wrap_content" | ||
android:layout_gravity="right" | ||
android:paddingRight="10dp" | ||
android:text="名字:" | ||
android:textSize="30dp" | ||
tools:ignore="MissingConstraints"/> | ||
|
||
<EditText | ||
android:id="@+id/et_name" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:hint="请输入名字" | ||
android:textSize="30dp"/> | ||
</LinearLayout> | ||
|
||
|
||
<LinearLayout | ||
android:layout_below="@id/tj_name" | ||
android:id="@+id/tj_day" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_centerHorizontal="true" | ||
android:orientation="horizontal" | ||
tools:ignore="MissingConstraints,Orientation" | ||
app:layout_constraintTop_toBottomOf="@+id/tj_name" | ||
android:layout_marginBottom="10dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintBottom_toTopOf="@+id/tj_phone" | ||
app:layout_constraintStart_toStartOf="parent"> | ||
|
||
<TextView | ||
android:layout_height="80dp" | ||
android:layout_width="wrap_content" | ||
android:layout_gravity="right" | ||
android:paddingRight="10dp" | ||
android:text="日期:" | ||
android:textSize="30dp" | ||
tools:ignore="MissingConstraints"/> | ||
|
||
|
||
<EditText | ||
android:id="@+id/et_day" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:hint="请输入日期" | ||
android:textSize="30dp"/> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_below="@id/tj_day" | ||
android:id="@+id/tj_phone" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_centerHorizontal="true" | ||
android:orientation="horizontal" | ||
tools:ignore="MissingConstraints,Orientation" | ||
app:layout_constraintTop_toBottomOf="@+id/tj_day" | ||
android:layout_marginBottom="200dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintBottom_toBottomOf="parent"> | ||
|
||
<TextView | ||
|
||
android:layout_height="80dp" | ||
android:layout_width="wrap_content" | ||
android:layout_gravity="right" | ||
android:paddingRight="10dp" | ||
android:text="电话号码:" | ||
android:textSize="30dp" | ||
tools:ignore="MissingConstraints"/> | ||
|
||
<EditText | ||
android:id="@+id/et_phone" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:hint="请输入电话号码" | ||
android:textSize="30dp"/> | ||
</LinearLayout> | ||
|
||
|
||
<RadioGroup | ||
android:id="@+id/radioGroup" | ||
android:layout_width="270dp" | ||
android:layout_height="0dp" | ||
android:layout_below="@id/tj_phone" | ||
android:contentDescription="性别" | ||
android:orientation="horizontal" | ||
tools:ignore="MissingConstraints" | ||
app:layout_constraintTop_toBottomOf="@+id/text2" | ||
android:layout_marginEnd="43dp" | ||
android:layout_marginRight="43dp" | ||
app:layout_constraintEnd_toEndOf="@+id/tj_phone" | ||
app:layout_constraintBottom_toTopOf="@+id/sent"> | ||
|
||
<RadioButton | ||
android:id="@+id/Male" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:checked="true" | ||
android:text="男" | ||
android:textSize="30dp" | ||
/> | ||
|
||
<RadioButton | ||
android:id="@+id/Femal" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="女" | ||
android:textSize="30dp"/> | ||
</RadioGroup> | ||
|
||
<Button | ||
android:id="@+id/sent" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
tools:ignore="MissingConstraints" | ||
android:text="提交信息" | ||
android:textSize="30dp" app:layout_constraintStart_toStartOf="@+id/radioGroup" | ||
android:layout_marginLeft="20dp" app:layout_constraintBottom_toBottomOf="parent" | ||
android:layout_marginStart="20dp" app:layout_constraintTop_toBottomOf="@+id/radioGroup" | ||
android:layout_marginBottom="58dp"/> | ||
|
||
</android.support.constraint.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?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" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".MainActivity3"> | ||
|
||
<TextView | ||
android:id="@+id/text2" | ||
android:layout_width="410dp" | ||
android:layout_height="58dp" | ||
android:text="编辑:编辑生日资料" | ||
android:textSize="40dp" | ||
tools:ignore="MissingConstraints" | ||
tools:layout_editor_absoluteY="5dp" | ||
tools:layout_editor_absoluteX="0dp"/> | ||
|
||
|
||
</android.support.constraint.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?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" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".MainActivity4"> | ||
|
||
<TextView | ||
android:id="@+id/text2" | ||
android:layout_width="410dp" | ||
android:layout_height="58dp" | ||
android:text="删除:删除生日管理人" | ||
android:textSize="40dp" | ||
tools:ignore="MissingConstraints" | ||
tools:layout_editor_absoluteY="5dp" | ||
tools:layout_editor_absoluteX="0dp"/> | ||
|
||
</android.support.constraint.ConstraintLayout> |