diff --git a/soft1614080902341/AndroidManifest.xml b/soft1614080902341/AndroidManifest.xml index 0667ee12f..3f7bd8524 100644 --- a/soft1614080902341/AndroidManifest.xml +++ b/soft1614080902341/AndroidManifest.xml @@ -1,22 +1,25 @@ + package="androidlabs.hzuapps.edu.soft1614080902341"> + android:name=".soft1614080902341MainActivity" + android:label="剪刀石头布"> + + + diff --git a/soft1614080902341/java/androidlabs/hzuapps/edu/soft1614080902341/buMainActivity.java b/soft1614080902341/java/androidlabs/hzuapps/edu/soft1614080902341/buMainActivity.java new file mode 100644 index 000000000..2d95b4158 --- /dev/null +++ b/soft1614080902341/java/androidlabs/hzuapps/edu/soft1614080902341/buMainActivity.java @@ -0,0 +1,13 @@ +package androidlabs.hzuapps.edu.soft1614080902341; + +import android.support.v7.app.ActionBarActivity; +import android.os.Bundle; + +public class buMainActivity extends ActionBarActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_bu_main); + } +} diff --git a/soft1614080902341/java/androidlabs/hzuapps/edu/soft1614080902341/jiandaoMainActivity.java b/soft1614080902341/java/androidlabs/hzuapps/edu/soft1614080902341/jiandaoMainActivity.java new file mode 100644 index 000000000..91df54169 --- /dev/null +++ b/soft1614080902341/java/androidlabs/hzuapps/edu/soft1614080902341/jiandaoMainActivity.java @@ -0,0 +1,13 @@ +package androidlabs.hzuapps.edu.soft1614080902341; + +import android.support.v7.app.ActionBarActivity; +import android.os.Bundle; + +public class jiandaoMainActivity extends ActionBarActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_jiandao_main2); + } +} diff --git a/soft1614080902341/java/androidlabs/hzuapps/edu/soft1614080902341/shitouMainActivity.java b/soft1614080902341/java/androidlabs/hzuapps/edu/soft1614080902341/shitouMainActivity.java new file mode 100644 index 000000000..69814554c --- /dev/null +++ b/soft1614080902341/java/androidlabs/hzuapps/edu/soft1614080902341/shitouMainActivity.java @@ -0,0 +1,13 @@ +package androidlabs.hzuapps.edu.soft1614080902341; + +import android.support.v7.app.ActionBarActivity; +import android.os.Bundle; + +public class shitouMainActivity extends ActionBarActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_shitou_main); + } +} diff --git a/soft1614080902341/java/androidlabs/hzuapps/edu/soft1614080902341/soft1614080902341MainActivity.java b/soft1614080902341/java/androidlabs/hzuapps/edu/soft1614080902341/soft1614080902341MainActivity.java new file mode 100644 index 000000000..749570f42 --- /dev/null +++ b/soft1614080902341/java/androidlabs/hzuapps/edu/soft1614080902341/soft1614080902341MainActivity.java @@ -0,0 +1,78 @@ +package androidlabs.hzuapps.edu.soft1614080902341; + +import android.app.Activity; +import android.content.Intent; +import android.os.Bundle; +import android.support.v7.app.ActionBarActivity; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.widget.Button; + +public class soft1614080902341MainActivity extends ActionBarActivity { + private Button myBtn_one; + private Button myBtn_tow; + private Button myBtn_thr; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_soft1614080902341_main); + myBtn_one =(Button) findViewById(R.id.but_one); + myBtn_tow =(Button) findViewById(R.id.but_tow); + myBtn_thr = (Button) findViewById(R.id.but_thr); + myBtn_one.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + // 另一个Activity的完整名称 = edu.androidlabs.soft123456(包名).Soft123456Activity(类名) + Intent intent=new Intent(); + intent.setClass(soft1614080902341MainActivity.this, jiandaoMainActivity.class); //设置跳转的Activity + soft1614080902341MainActivity.this.startActivity(intent); + } + }); + myBtn_tow.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + // 另一个Activity的完整名称 = edu.androidlabs.soft123456(包名).Soft123456Activity(类名) + Intent intent=new Intent(); + intent.setClass(soft1614080902341MainActivity.this, shitouMainActivity.class); //设置跳转的Activity + soft1614080902341MainActivity.this.startActivity(intent); + } + }); + myBtn_thr.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + // 另一个Activity的完整名称 = edu.androidlabs.soft123456(包名).Soft123456Activity(类名) + Intent intent=new Intent(); + intent.setClass(soft1614080902341MainActivity.this, buMainActivity.class); //设置跳转的Activity + soft1614080902341MainActivity.this.startActivity(intent); + } + }); + + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + // Inflate the menu; this adds items to the action bar if it is present. + getMenuInflater().inflate(R.menu.menu_soft1614080902341_main, menu); + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + // Handle action bar item clicks here. The action bar will + // automatically handle clicks on the Home/Up button, so long + // as you specify a parent activity in AndroidManifest.xml. + int id = item.getItemId(); + + //noinspection SimplifiableIfStatement + if (id == R.id.action_settings) { + return true; + } + + return super.onOptionsItemSelected(item); + } + + + +} diff --git a/soft1614080902341/java/com/example/lly/myapplication/soft1614080902341Activity.java b/soft1614080902341/java/com/example/lly/myapplication/soft1614080902341Activity.java deleted file mode 100644 index bdcf123fd..000000000 --- a/soft1614080902341/java/com/example/lly/myapplication/soft1614080902341Activity.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.example.lly.myapplication; - -import android.os.Bundle; -import android.support.v7.app.ActionBarActivity; -import android.view.Menu; -import android.view.MenuItem; - -public class soft1614080902341Activity extends ActionBarActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_soft1614080902341); - } - - @Override - public boolean onCreateOptionsMenu(Menu menu) { - // Inflate the menu; this adds items to the action bar if it is present. - getMenuInflater().inflate(R.menu.menu_soft1614080902341, menu); - return true; - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - // Handle action bar item clicks here. The action bar will - // automatically handle clicks on the Home/Up button, so long - // as you specify a parent activity in AndroidManifest.xml. - int id = item.getItemId(); - - //noinspection SimplifiableIfStatement - if (id == R.id.action_settings) { - return true; - } - - return super.onOptionsItemSelected(item); - } -} diff --git a/soft1614080902341/res/drawable/bu.jpg b/soft1614080902341/res/drawable/bu.jpg new file mode 100644 index 000000000..81bc82209 Binary files /dev/null and b/soft1614080902341/res/drawable/bu.jpg differ diff --git a/soft1614080902341/res/drawable/hz1.jpg b/soft1614080902341/res/drawable/hz1.jpg new file mode 100644 index 000000000..da21d2f10 Binary files /dev/null and b/soft1614080902341/res/drawable/hz1.jpg differ diff --git a/soft1614080902341/res/drawable/jiandao.jpg b/soft1614080902341/res/drawable/jiandao.jpg new file mode 100644 index 000000000..7b24e9c0d Binary files /dev/null and b/soft1614080902341/res/drawable/jiandao.jpg differ diff --git a/soft1614080902341/res/drawable/shitou.jpg b/soft1614080902341/res/drawable/shitou.jpg new file mode 100644 index 000000000..ae0be0a32 Binary files /dev/null and b/soft1614080902341/res/drawable/shitou.jpg differ diff --git a/soft1614080902341/res/layout/activity_soft1614080902341.xml b/soft1614080902341/res/layout/activity_bu_main.xml similarity index 76% rename from soft1614080902341/res/layout/activity_soft1614080902341.xml rename to soft1614080902341/res/layout/activity_bu_main.xml index 379b4e16b..73c9c6399 100644 --- a/soft1614080902341/res/layout/activity_soft1614080902341.xml +++ b/soft1614080902341/res/layout/activity_bu_main.xml @@ -7,10 +7,12 @@ android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" - tools:context="com.example.lly.myapplication.soft1614080902341Activity"> - + tools:context="androidlabs.hzuapps.edu.soft1614080902341.buMainActivity"> + android:drawableTop="@drawable/bu" + android:text="布" /> + diff --git a/soft1614080902341/res/layout/activity_jiandao_main2.xml b/soft1614080902341/res/layout/activity_jiandao_main2.xml new file mode 100644 index 000000000..ae301361d --- /dev/null +++ b/soft1614080902341/res/layout/activity_jiandao_main2.xml @@ -0,0 +1,18 @@ + + + + + diff --git a/soft1614080902341/res/layout/activity_shitou_main.xml b/soft1614080902341/res/layout/activity_shitou_main.xml new file mode 100644 index 000000000..04225f469 --- /dev/null +++ b/soft1614080902341/res/layout/activity_shitou_main.xml @@ -0,0 +1,18 @@ + + + + + diff --git a/soft1614080902341/res/layout/activity_soft1614080902341_main.xml b/soft1614080902341/res/layout/activity_soft1614080902341_main.xml new file mode 100644 index 000000000..8a6a9a279 --- /dev/null +++ b/soft1614080902341/res/layout/activity_soft1614080902341_main.xml @@ -0,0 +1,41 @@ + + + + + +