diff --git a/AndroidManifest.xml b/AndroidManifest.xml new file mode 100644 index 000000000..714865e75 --- /dev/null +++ b/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/activity_soft1614080902302.xml b/activity_soft1614080902302.xml new file mode 100644 index 000000000..ea7ad535c --- /dev/null +++ b/activity_soft1614080902302.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/java/soft1614080902302/androidlabs/hzuapps/edu/soft1614080902302activity/Soft1614080902302Activity.java b/java/soft1614080902302/androidlabs/hzuapps/edu/soft1614080902302activity/Soft1614080902302Activity.java new file mode 100644 index 000000000..2308c53c5 --- /dev/null +++ b/java/soft1614080902302/androidlabs/hzuapps/edu/soft1614080902302activity/Soft1614080902302Activity.java @@ -0,0 +1,52 @@ +package soft1614080902302.androidlabs.hzuapps.edu.soft1614080902302activity; + +import android.os.Bundle; +import android.support.design.widget.FloatingActionButton; +import android.support.design.widget.Snackbar; +import android.support.v7.app.AppCompatActivity; +import android.support.v7.widget.Toolbar; +import android.view.View; +import android.view.Menu; +import android.view.MenuItem; + +public class Soft1614080902302Activity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_soft1614080902302); + Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); + setSupportActionBar(toolbar); + + FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); + fab.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) + .setAction("Action", null).show(); + } + }); + } + + @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_soft1614080902302, 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/report2.md b/report2.md new file mode 100644 index 000000000..43c2c5400 --- /dev/null +++ b/report2.md @@ -0,0 +1,144 @@ +# �ڶ���ʵ�� +## 1.ʵ��Ŀ�� +(1)��Issues�д����Լ���ѡ�⣺https://github.com/hzuapps/android-labs-2018/issues�� +(2)������ѡ��Ŀ����дһ������Activity�����о�����ѧ��ǰ׺���ŵ��Լ���Java���£��� +(3)����������Ϊ�Լ���ѧ��+��Ӧ�Ĺ��ܻ���Ŀ�� +## 2.ʵ�鲽�� +(1)�Ķ�ʵ��Ҫ��https://github.com/hzuapps/android-labs-2018/labels/Lab +(2)�ڵ�����Android Studio��д���� // ����Ҫ�������У� +(3)ʹ��Git�������ύ���Լ��Ŀ��У�https://github.com/YOUR_NAME/android-labs-2018 +$ git pull +$ git add ѧ��Ŀ¼/* +$ git commit "#2 #984 �ڶ���ʵ�� " +$ git push +(4)���Լ���GitHub���ϴ����ͷ���Pull Request��ע��鿴Changed files�� // �Ƿ�ֻ�޸����Լ����ļ��� +(5)��GitHub��ʹ��Markdown�ļ���дʵ�鱨�棨report1.md, report2.md��// �������Լ����ļ����� +## 3.ʵ����(4���ļ��Ĵ���) + +�ļ�1.java\soft1614080902302\androidlabs\hzuapps\edu\soft1614080902302activity\Soft1614080902302Activity.java +package soft1614080902302.androidlabs.hzuapps.edu.soft1614080902302activity; + +import android.os.Bundle; +import android.support.design.widget.FloatingActionButton; +import android.support.design.widget.Snackbar; +import android.support.v7.app.AppCompatActivity; +import android.support.v7.widget.Toolbar; +import android.view.View; +import android.view.Menu; +import android.view.MenuItem; + +public class Soft1614080902302Activity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_soft1614080902302); + Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); + setSupportActionBar(toolbar); + + FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); + fab.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) + .setAction("Action", null).show(); + } + }); + } + + @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_soft1614080902302, 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); + } +} + +�ļ�2.AndroidManifest.xml + + + + + + + + + + + + + + + + +�ļ�3.activity_soft1614080902302.xml + + + + + + + + + + + + + + + + +�ļ�4.strings.xml + + + Soft1614080902302��ݲ�ѯϵͳ + Settings + + + +## 4.ʵ����� + ͨ�����ʵ��,���˽⵽Android�����,ѧ�����޸ı�����������. \ No newline at end of file diff --git a/strings.xml b/strings.xml new file mode 100644 index 000000000..f5af2d53a --- /dev/null +++ b/strings.xml @@ -0,0 +1,4 @@ + + Soft1614080902302快递查询系统 + Settings +