diff --git a/soft1614080902435/3.1.png b/soft1614080902435/3.1.png new file mode 100644 index 000000000..a8a63ee08 Binary files /dev/null and b/soft1614080902435/3.1.png differ diff --git a/soft1614080902435/3.2.png b/soft1614080902435/3.2.png new file mode 100644 index 000000000..0a5fc3e5b Binary files /dev/null and b/soft1614080902435/3.2.png differ diff --git a/soft1614080902435/4.1.png b/soft1614080902435/4.1.png new file mode 100644 index 000000000..9086c8d20 Binary files /dev/null and b/soft1614080902435/4.1.png differ diff --git a/soft1614080902435/4.2.png b/soft1614080902435/4.2.png new file mode 100644 index 000000000..56687d502 Binary files /dev/null and b/soft1614080902435/4.2.png differ diff --git a/soft1614080902435/app/src/main/AndroidManifest.xml b/soft1614080902435/app/src/main/AndroidManifest.xml index 6a8d0f50e..af5fcbaa6 100644 --- a/soft1614080902435/app/src/main/AndroidManifest.xml +++ b/soft1614080902435/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ + package="edu.hzuapps.androidlabs.Soft1614080902435"> - + + \ No newline at end of file diff --git a/soft1614080902435/app/src/main/java/edu/hzuapps/androidlabs/Soft1614080902435/Soft1614080902435.java b/soft1614080902435/app/src/main/java/edu/hzuapps/androidlabs/Soft1614080902435/Soft1614080902435.java index 2c1538a9f..ee849f724 100644 --- a/soft1614080902435/app/src/main/java/edu/hzuapps/androidlabs/Soft1614080902435/Soft1614080902435.java +++ b/soft1614080902435/app/src/main/java/edu/hzuapps/androidlabs/Soft1614080902435/Soft1614080902435.java @@ -1,4 +1,32 @@ package edu.hzuapps.androidlabs.Soft1614080902435; -public class Soft1614080902435 { +import android.content.Intent; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.util.Log; +import android.view.View; +import android.widget.Button; + +public class Soft1614080902435 extends AppCompatActivity implements View.OnClickListener { + + Button b; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_soft1614080902435); + Log.d("dd","123"); + b = (Button)findViewById(R.id.open); + b.setOnClickListener(this); + } + @Override + public void onClick(View view) { + if(view==b){ + Intent intent = new Intent(); + Log.d("dd","123"); + intent.setClass(Soft1614080902435.this,jiemianerActivity.class); + startActivity(intent); + } + } + } diff --git a/soft1614080902435/app/src/main/java/edu/hzuapps/androidlabs/Soft1614080902435/jiemianerActivity.java b/soft1614080902435/app/src/main/java/edu/hzuapps/androidlabs/Soft1614080902435/jiemianerActivity.java new file mode 100644 index 000000000..9f0207648 --- /dev/null +++ b/soft1614080902435/app/src/main/java/edu/hzuapps/androidlabs/Soft1614080902435/jiemianerActivity.java @@ -0,0 +1,57 @@ +package edu.hzuapps.androidlabs.Soft1614080902435; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.util.Log; +import android.view.View; +import android.widget.TextView; + +public class jiemianerActivity extends AppCompatActivity implements View.OnClickListener { + TextView t[] = new TextView[19]; + TextView counting,result; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_jiemianer); + this.RegisterEvent(); + } + public void RegisterEvent(){ + counting = (TextView) findViewById(R.id.counting); + result = (TextView) findViewById(R.id.result); + String str = "R.id.n_0"; + t[0] = (TextView) findViewById(R.id.n_0); + t[1] = (TextView) findViewById(R.id.n_1); + t[2] = (TextView) findViewById(R.id.n_2); + t[3] = (TextView) findViewById(R.id.n_3); + t[4] = (TextView) findViewById(R.id.n_4); + t[5] = (TextView) findViewById(R.id.n_5); + t[6] = (TextView) findViewById(R.id.n_6); + t[7] = (TextView) findViewById(R.id.n_7); + t[8] = (TextView) findViewById(R.id.n_8); + t[9] = (TextView) findViewById(R.id.n_9); + t[10] = (TextView) findViewById(R.id.n_10); + t[11] = (TextView) findViewById(R.id.n_11); + t[12] = (TextView) findViewById(R.id.n_12); + t[13] = (TextView) findViewById(R.id.n_13); + t[14] = (TextView) findViewById(R.id.n_14); + t[15] = (TextView) findViewById(R.id.n_15); + t[16] = (TextView) findViewById(R.id.n_16); + t[17] = (TextView) findViewById(R.id.n_17); + t[18] = (TextView) findViewById(R.id.n_18); + for(int i=0;i<19;i++){ + t[i].setOnClickListener(this); + } + } + + @Override + public void onClick(View view) { + for(int i=0;i<19;i++){ + if(t[i]==view){ + String str = t[i].getText().toString(); + Log.d("dd",str); + counting.setText(str); + } + } + } +} diff --git a/soft1614080902435/app/src/main/res/drawable/beijing.png b/soft1614080902435/app/src/main/res/drawable/beijing.png new file mode 100644 index 000000000..3784fdce0 Binary files /dev/null and b/soft1614080902435/app/src/main/res/drawable/beijing.png differ diff --git a/soft1614080902435/app/src/main/res/drawable/ic_launcher_background.xml b/soft1614080902435/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 000000000..d5fccc538 --- /dev/null +++ b/soft1614080902435/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/soft1614080902435/app/src/main/res/layout/activity_jiemianer.xml b/soft1614080902435/app/src/main/res/layout/activity_jiemianer.xml new file mode 100644 index 000000000..44336596d --- /dev/null +++ b/soft1614080902435/app/src/main/res/layout/activity_jiemianer.xml @@ -0,0 +1,279 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/soft1614080902435/app/src/main/res/layout/activity_soft1614080902435.xml b/soft1614080902435/app/src/main/res/layout/activity_soft1614080902435.xml new file mode 100644 index 000000000..29f5ce3bb --- /dev/null +++ b/soft1614080902435/app/src/main/res/layout/activity_soft1614080902435.xml @@ -0,0 +1,24 @@ + + + +