Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1215 from zhengtingting1/master
Browse files Browse the repository at this point in the history
#2 #565 第2次实验
  • Loading branch information
zengsn authored Dec 3, 2020
2 parents 8287e26 + e650cbe commit c01d6a0
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 0 deletions.
6 changes: 6 additions & 0 deletions students/net1814080903241/Net1814080903241Activity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package edu.hzuapps.androidlabs.net1814080903241;

public class Net1814080903241Activity{


}
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);
}
});
}
}
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);

}
}
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);
}
}
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>
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>
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>

0 comments on commit c01d6a0

Please sign in to comment.