This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1215 from zhengtingting1/master
- Loading branch information
Showing
7 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
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,6 @@ | ||
package edu.hzuapps.androidlabs.net1814080903241; | ||
|
||
public class Net1814080903241Activity{ | ||
|
||
|
||
} |
34 changes: 34 additions & 0 deletions
34
...1814080903241/app/src/main/java/edu/hzuapps/androidlabs/net181408903241/MainActivity.java
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,34 @@ | ||
package edu.hzuapps.androidlabs.net181408903241; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import android.content.Intent; | ||
import android.os.Bundle; | ||
import android.widget.Button; | ||
import android.view.View; | ||
|
||
public class MainActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_main); | ||
|
||
Button button_tiao1 = (Button) findViewById(R.id.button1); | ||
final MainActivity thisActivity1 = this; | ||
button_tiao1.setOnClickListener(new View.OnClickListener() { | ||
public void onClick(View v) { | ||
Intent Intent1 = new Intent(thisActivity1, MarkActivity.class); | ||
MainActivity.this.startActivity(Intent1); | ||
} | ||
}); | ||
Button button_tiao2 = (Button) findViewById(R.id.button2); | ||
final MainActivity thisActivity2 = this; | ||
button_tiao2.setOnClickListener(new View.OnClickListener() { | ||
public void onClick(View v) { | ||
Intent Intent2 = new Intent(thisActivity2, SerachActivity.class); | ||
MainActivity.this.startActivity(Intent2); | ||
} | ||
}); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...1814080903241/app/src/main/java/edu/hzuapps/androidlabs/net181408903241/MarkActivity.java
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,10 @@ | ||
package edu.hzuapps.androidlabs.net181408903241; | ||
import android.os.Bundle; | ||
import androidx.appcompat.app.AppCompatActivity; | ||
public class MarkActivity extends AppCompatActivity { | ||
protected void onCreate(Bundle savedInstanceState){ | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_punchtheclock); | ||
|
||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...14080903241/app/src/main/java/edu/hzuapps/androidlabs/net181408903241/SerachActivity.java
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,9 @@ | ||
package edu.hzuapps.androidlabs.net181408903241; | ||
import android.os.Bundle; | ||
import androidx.appcompat.app.AppCompatActivity; | ||
public class SerachActivity extends AppCompatActivity { | ||
protected void onCreate(Bundle savedInstanceState){ | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_searchword); | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
students/net1814080903241/app/src/main/res/layout/activity_main.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,49 @@ | ||
<?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" | ||
tools:context=".MainActivity"> | ||
|
||
<TextView | ||
android:id="@+id/textView2" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Hello World!" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintLeft_toLeftOf="parent" | ||
app:layout_constraintRight_toRightOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<Button | ||
android:id="@+id/button1" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="92dp" | ||
android:text="单词打卡" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintHorizontal_bias="0.498" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/textView2" /> | ||
|
||
<Button | ||
android:id="@+id/button2" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="464dp" | ||
android:text="搜索单词或短语" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintHorizontal_bias="0.498" | ||
app:layout_constraintStart_toStartOf="parent" /> | ||
|
||
<TextView | ||
android:id="@+id/textView" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="背单词打卡" | ||
tools:layout_editor_absoluteX="174dp" | ||
tools:layout_editor_absoluteY="89dp" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> |
6 changes: 6 additions & 0 deletions
6
students/net1814080903241/app/src/main/res/layout/activity_punchtheclock.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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
</LinearLayout> |
11 changes: 11 additions & 0 deletions
11
students/net1814080903241/app/src/main/res/layout/activity_searchword.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,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:text="TextView" /> | ||
</LinearLayout> |