From 27b6fc0ab6e98089933f3146175c596ef27b8a4a Mon Sep 17 00:00:00 2001 From: "zy.Chan" <497226838@qq.com> Date: Sun, 24 Mar 2019 19:28:04 +0800 Subject: [PATCH] =?UTF-8?q?#4=20#284=20=E7=AC=AC4=E6=AC=A1=E5=AE=9E?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../soft1714080902407/Detail_Activity.java | 9 +++- .../Soft1714080902407Activity.java | 6 +-- .../app/src/main/res/drawable/zjq.jpg | Bin 0 -> 4110 bytes .../src/main/res/layout/detail_activity.xml | 49 +++++++++++++----- .../layout/soft_1714080902407_activity.xml | 48 +++++++++++------ 5 files changed, 77 insertions(+), 35 deletions(-) create mode 100644 students/soft1714080902407/app/src/main/res/drawable/zjq.jpg diff --git a/students/soft1714080902407/app/src/main/java/edu/hzuapps/androidlabs/soft1714080902407/Detail_Activity.java b/students/soft1714080902407/app/src/main/java/edu/hzuapps/androidlabs/soft1714080902407/Detail_Activity.java index e6bcabf1f..1c6851580 100644 --- a/students/soft1714080902407/app/src/main/java/edu/hzuapps/androidlabs/soft1714080902407/Detail_Activity.java +++ b/students/soft1714080902407/app/src/main/java/edu/hzuapps/androidlabs/soft1714080902407/Detail_Activity.java @@ -1,13 +1,20 @@ package edu.hzuapps.androidlabs.soft1714080902407; +import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; +import android.view.View; -public class Detail_Activity extends AppCompatActivity { +public class Detail_Activity extends AppCompatActivity implements View.OnClickListener { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.detail_activity); } + + public void onClick(View view){ + Intent intent = new Intent(Detail_Activity.this,Soft1714080902407Activity.class); + startActivity(intent); + } } diff --git a/students/soft1714080902407/app/src/main/java/edu/hzuapps/androidlabs/soft1714080902407/Soft1714080902407Activity.java b/students/soft1714080902407/app/src/main/java/edu/hzuapps/androidlabs/soft1714080902407/Soft1714080902407Activity.java index 99f4fe6d4..6fe02b6e1 100644 --- a/students/soft1714080902407/app/src/main/java/edu/hzuapps/androidlabs/soft1714080902407/Soft1714080902407Activity.java +++ b/students/soft1714080902407/app/src/main/java/edu/hzuapps/androidlabs/soft1714080902407/Soft1714080902407Activity.java @@ -5,7 +5,7 @@ import android.os.Bundle; import android.view.View; -public class Soft1714080902407Activity extends AppCompatActivity { +public class Soft1714080902407Activity extends AppCompatActivity implements View.OnClickListener { @Override protected void onCreate(Bundle savedInstanceState) { @@ -13,9 +13,9 @@ protected void onCreate(Bundle savedInstanceState) { setContentView(R.layout.soft_1714080902407_activity); } - - public void gotoSecondActivity(View view){ + public void onClick(View view){ Intent intent = new Intent(Soft1714080902407Activity.this,Detail_Activity.class); startActivity(intent); } + } diff --git a/students/soft1714080902407/app/src/main/res/drawable/zjq.jpg b/students/soft1714080902407/app/src/main/res/drawable/zjq.jpg new file mode 100644 index 0000000000000000000000000000000000000000..80eb217253899cff5e28a9ec2762de0fe0da5fcd GIT binary patch literal 4110 zcmbW3cTm&Yw#R>w5~>PFlad1oSO_A$C`3S-h%_Nml8AKaokIzVhoUqof+8j&U7EBI zAkvHIK}1R@(h&p!6CxM{!VUM`xo_tE_3r)dwPyCrUTe?yGkf;zeK>wN2b{cSXkrL} zKp@~Ya{!0)fV4rlryBs6nE~ek0N`M*@dGT(8HhRlslzEiA2@E!F{W8IR#s+p zG;Kwol4}>)N{d20|mTskyVOyQjDBUH|*f!y}_(qF zL;BEsBo*IS+xY9MfJs`nEW&;wXCW-XmUq_IiepY`oe}cFl~QN$uoa~?eJSc?^>&#m zBFE9;I4tqr&&Pi1r@xhy5eoZo;E9c-=Mk9+gP z!6y(mBJg8xDq$~PMcVnY-AvQAY3bzy?m=p!Bi+e;UfOkux z7TD6rxivv^3KDjOEm6ie^lZBArsW`UoE>p`(U&B@_(QvGA!52N3GY|rD!1)!rT`0` zM8q-vu*1)I3DFd8pE(3XdOXnIu$Qx^{3a_WYDSao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