diff --git "a/students/soft1714080902210/\345\256\236\351\252\214\345\233\233/edu/hzuapps/androidlabs/soft1714080902210/Soft1714080902210Activity_Check.java" "b/students/soft1714080902210/\345\256\236\351\252\214\345\233\233/edu/hzuapps/androidlabs/soft1714080902210/Soft1714080902210Activity_Check.java" new file mode 100644 index 000000000..697394c2c --- /dev/null +++ "b/students/soft1714080902210/\345\256\236\351\252\214\345\233\233/edu/hzuapps/androidlabs/soft1714080902210/Soft1714080902210Activity_Check.java" @@ -0,0 +1,23 @@ +package edu.hzuapps.androidlabs.soft1714080902210; + +import android.content.Intent; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; + +public class Soft1714080902210Activity_Check extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_soft1714080902210__check); + Button btnOpen = findViewById(R.id.button6); + btnOpen.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + startActivity(new Intent(Soft1714080902210Activity_Check.this,Soft1714080902210Activity_Second.class)); + } + }); + } +} diff --git "a/students/soft1714080902210/\345\256\236\351\252\214\345\233\233/edu/hzuapps/androidlabs/soft1714080902210/Soft1714080902210Activity_New.java" "b/students/soft1714080902210/\345\256\236\351\252\214\345\233\233/edu/hzuapps/androidlabs/soft1714080902210/Soft1714080902210Activity_New.java" new file mode 100644 index 000000000..2c7bed70b --- /dev/null +++ "b/students/soft1714080902210/\345\256\236\351\252\214\345\233\233/edu/hzuapps/androidlabs/soft1714080902210/Soft1714080902210Activity_New.java" @@ -0,0 +1,23 @@ +package edu.hzuapps.androidlabs.soft1714080902210; + +import android.content.Intent; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; + +public class Soft1714080902210Activity_New extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_soft1714080902210__new); + Button btnOpen = findViewById(R.id.button8); + btnOpen.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + startActivity(new Intent(Soft1714080902210Activity_New.this,Soft1714080902210Activity_Second.class)); + } + }); + } +} diff --git "a/students/soft1714080902210/\345\256\236\351\252\214\345\233\233/edu/hzuapps/androidlabs/soft1714080902210/Soft1714080902210Activity_Second.java" "b/students/soft1714080902210/\345\256\236\351\252\214\345\233\233/edu/hzuapps/androidlabs/soft1714080902210/Soft1714080902210Activity_Second.java" new file mode 100644 index 000000000..09a24d247 --- /dev/null +++ "b/students/soft1714080902210/\345\256\236\351\252\214\345\233\233/edu/hzuapps/androidlabs/soft1714080902210/Soft1714080902210Activity_Second.java" @@ -0,0 +1,40 @@ +package edu.hzuapps.androidlabs.soft1714080902210; + +import android.content.DialogInterface; +import android.content.Intent; +import android.support.v7.app.AlertDialog; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; + +public class Soft1714080902210Activity_Second extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_soft1714080902210__second); + Button btnOpen = findViewById(R.id.button2); + btnOpen.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + startActivity(new Intent(Soft1714080902210Activity_Second.this,Soft1714080902210Activity_New.class)); + } + }); + Button btnOpen1 = findViewById(R.id.button3); + btnOpen1.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + startActivity(new Intent(Soft1714080902210Activity_Second.this,Soft1714080902210Activity_Check.class)); + } + }); + Button btnOpen2 = findViewById(R.id.button10); + btnOpen2.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + startActivity(new Intent(Soft1714080902210Activity_Second.this,Sort1714080902210Activity.class)); + } + }); + } + +} diff --git "a/students/soft1714080902210/\345\256\236\351\252\214\345\233\233/edu/hzuapps/androidlabs/soft1714080902210/Sort1714080902210Activity.java" "b/students/soft1714080902210/\345\256\236\351\252\214\345\233\233/edu/hzuapps/androidlabs/soft1714080902210/Sort1714080902210Activity.java" new file mode 100644 index 000000000..11dd4d0c3 --- /dev/null +++ "b/students/soft1714080902210/\345\256\236\351\252\214\345\233\233/edu/hzuapps/androidlabs/soft1714080902210/Sort1714080902210Activity.java" @@ -0,0 +1,64 @@ +package edu.hzuapps.androidlabs.soft1714080902210; + +import android.content.DialogInterface; +import android.content.Intent; +import android.support.v7.app.AlertDialog; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; +import android.widget.TextView; + +import org.w3c.dom.Text; +public class Sort1714080902210Activity extends AppCompatActivity { + private TextView textView; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_sort1714080902210); + Button btnOpen = findViewById(R.id.button); + btnOpen.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + startActivity(new Intent(Sort1714080902210Activity.this,Soft1714080902210Activity_Second.class)); + } + }); + } + public void showdialog(View view) + { + //定义一个新的对话框对象 + AlertDialog.Builder alertdialogbuilder=new AlertDialog.Builder(this); + //设置对话框提示内容 + alertdialogbuilder.setMessage("确定要退出程序吗?"); + //定义对话框2个按钮标题及接受事件的函数 + alertdialogbuilder.setPositiveButton("确定",click1); + alertdialogbuilder.setNegativeButton("取消",click2); + //创建并显示对话框 + AlertDialog alertdialog1=alertdialogbuilder.create(); + alertdialog1.show(); + + } + private DialogInterface.OnClickListener click1=new DialogInterface.OnClickListener() + { + //使用该标记是为了增强程序在编译时候的检查,如果该方法并不是一个覆盖父类的方法,在编译时编译器就会报告错误。 + + @Override + + public void onClick(DialogInterface arg0,int arg1) + { + //当按钮click1被按下时执行结束进程 + android.os.Process.killProcess(android.os.Process.myPid()); + } + }; + + private DialogInterface.OnClickListener click2=new DialogInterface.OnClickListener() + { + @Override + public void onClick(DialogInterface arg0,int arg1) + { + //当按钮click2被按下时则取消操作 + arg0.cancel(); + } + }; +} diff --git "a/students/soft1714080902210/\345\256\236\351\252\214\345\233\233/layout/activity_soft1714080902210__check.xml" "b/students/soft1714080902210/\345\256\236\351\252\214\345\233\233/layout/activity_soft1714080902210__check.xml" new file mode 100644 index 000000000..174a45941 --- /dev/null +++ "b/students/soft1714080902210/\345\256\236\351\252\214\345\233\233/layout/activity_soft1714080902210__check.xml" @@ -0,0 +1,36 @@ + + + + + +