Skip to content

Commit

Permalink
hzuapps#3 hzuapps#407 第3次实验
Browse files Browse the repository at this point in the history
  • Loading branch information
zcjzzf committed Dec 25, 2020
1 parent e6f6bb6 commit dbf255b
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 0 deletions.
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 students/net1814080903214/src/main/res/layout/MainActivity.xml
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 students/net1814080903214/src/main/res/layout/ResetActivity.xml
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 students/net1814080903214/src/main/res/layout/StartActivity.xml
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>

0 comments on commit dbf255b

Please sign in to comment.