diff --git a/soft1614080902434/3.0.png b/soft1614080902434/3.0.png new file mode 100644 index 000000000..c2ea0a0ec Binary files /dev/null and b/soft1614080902434/3.0.png differ diff --git a/soft1614080902434/3.1.png b/soft1614080902434/3.1.png new file mode 100644 index 000000000..b8a897319 Binary files /dev/null and b/soft1614080902434/3.1.png differ diff --git a/soft1614080902434/app/src/main/AndroidManifest.xml b/soft1614080902434/app/src/main/AndroidManifest.xml new file mode 100644 index 000000000..9c00bfa13 --- /dev/null +++ b/soft1614080902434/app/src/main/AndroidManifest.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/soft1614080902434/app/src/main/java/edu/hzuapps/androidlabs/soft1614080902434/Second_Activity.java b/soft1614080902434/app/src/main/java/edu/hzuapps/androidlabs/soft1614080902434/Second_Activity.java new file mode 100644 index 000000000..46b301acb --- /dev/null +++ b/soft1614080902434/app/src/main/java/edu/hzuapps/androidlabs/soft1614080902434/Second_Activity.java @@ -0,0 +1,13 @@ +package soft1614080902434.androidlabs.hzuapps.edu.soft1614080902434; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; + +public class Second_Activity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_second_); + } +} diff --git a/soft1614080902434/app/src/main/java/edu/hzuapps/androidlabs/soft1614080902434/Wechat.java b/soft1614080902434/app/src/main/java/edu/hzuapps/androidlabs/soft1614080902434/Wechat.java new file mode 100644 index 000000000..c28356ad4 --- /dev/null +++ b/soft1614080902434/app/src/main/java/edu/hzuapps/androidlabs/soft1614080902434/Wechat.java @@ -0,0 +1,32 @@ +package soft1614080902434.androidlabs.hzuapps.edu.soft1614080902434; + +import android.content.Intent; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; + +public class Wechat extends AppCompatActivity implements View.OnClickListener { + Button b; + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_wechat); + b = (Button)findViewById(R.id.but); + b.setOnClickListener(this); + } + + @Override + public void onClick(View view) { + if(view==b){ + Intent intent = new Intent(); + intent.setClass(Wechat.this,Second_Activity.class); + startActivity(intent); + } + } + + @Override + public void onPointerCaptureChanged(boolean hasCapture) { + + } +} diff --git a/soft1614080902434/app/src/main/res/drawable/wc.png b/soft1614080902434/app/src/main/res/drawable/wc.png new file mode 100644 index 000000000..55a3ba202 Binary files /dev/null and b/soft1614080902434/app/src/main/res/drawable/wc.png differ diff --git a/soft1614080902434/app/src/main/res/layout/activity_second_.xml b/soft1614080902434/app/src/main/res/layout/activity_second_.xml new file mode 100644 index 000000000..c01a13267 --- /dev/null +++ b/soft1614080902434/app/src/main/res/layout/activity_second_.xml @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/soft1614080902434/app/src/main/res/layout/activity_wechat.xml b/soft1614080902434/app/src/main/res/layout/activity_wechat.xml new file mode 100644 index 000000000..1314865df --- /dev/null +++ b/soft1614080902434/app/src/main/res/layout/activity_wechat.xml @@ -0,0 +1,39 @@ + + + + + +