forked from hzuapps/android-labs-2020
-
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
4 changed files
with
99 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.
23 changes: 23 additions & 0 deletions
23
students/net1814080903214/src/main/res/layout/MainActivity.xml
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,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.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" | ||
android:background="#3498db" | ||
tools:context=".GameActivity"> | ||
|
||
<TextView | ||
android:id="@+id/textView" | ||
android:layout_width="177dp" | ||
android:layout_height="96dp" | ||
android:text="开始游戏" | ||
android:textSize="30dp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintHorizontal_bias="0.67" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:layout_constraintVertical_bias="0.59" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> |
32 changes: 32 additions & 0 deletions
32
students/net1814080903214/src/main/res/layout/ResetActivity.xml
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,32 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.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" | ||
android:background="#3498db" | ||
tools:context=".Net1814080903106Activity"> | ||
|
||
<Button | ||
android:id="@+id/toGame" | ||
android:layout_width="150dp" | ||
android:layout_height="80dp" | ||
android:layout_marginBottom="40dp" | ||
android:text="重玩游戏" | ||
android:textSize="75px" | ||
app:layout_constraintBottom_toTopOf="@+id/toHistoryScore" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" /> | ||
|
||
|
||
<ImageView | ||
android:id="@+id/imageView" | ||
android:layout_width="500dp" | ||
android:layout_height="200dp" | ||
android:layout_marginStart="64dp" | ||
android:layout_marginLeft="64dp" | ||
app:layout_constraintBottom_toTopOf="@+id/toGame" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:srcCompat="@drawable/transparentwords" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> |
44 changes: 44 additions & 0 deletions
44
students/net1814080903214/src/main/res/layout/StartActivity.xml
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,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.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" | ||
android:background="#3498db" | ||
tools:context=".Net1814080903106Activity"> | ||
|
||
<Button | ||
android:id="@+id/toGame" | ||
android:layout_width="150dp" | ||
android:layout_height="80dp" | ||
android:layout_marginBottom="40dp" | ||
android:text="撤回" | ||
android:textSize="75px" | ||
app:layout_constraintBottom_toTopOf="@+id/toHistoryScore" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" /> | ||
|
||
<Button | ||
android:id="@+id/toHistoryScore" | ||
android:layout_width="150dp" | ||
android:layout_height="80dp" | ||
android:layout_marginBottom="84dp" | ||
android:text="最高分数" | ||
android:textSize="75px" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintHorizontal_bias="0.503" | ||
app:layout_constraintStart_toStartOf="parent" /> | ||
|
||
<ImageView | ||
android:id="@+id/imageView" | ||
android:layout_width="500dp" | ||
android:layout_height="200dp" | ||
android:layout_marginStart="64dp" | ||
android:layout_marginLeft="64dp" | ||
app:layout_constraintBottom_toTopOf="@+id/toGame" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:srcCompat="@drawable/transparentwords" /> | ||
|
||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> |