diff --git a/students/soft1714080902340/drawable/ic_launcher_background.xml b/students/soft1714080902340/drawable/ic_launcher_background.xml new file mode 100644 index 000000000..0d025f9bf --- /dev/null +++ b/students/soft1714080902340/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/students/soft1714080902340/drawable/themonkeyking3.jpg b/students/soft1714080902340/drawable/themonkeyking3.jpg new file mode 100644 index 000000000..044abc113 Binary files /dev/null and b/students/soft1714080902340/drawable/themonkeyking3.jpg differ diff --git a/students/soft1714080902340/layout/first_layout.xml b/students/soft1714080902340/layout/first_layout.xml new file mode 100644 index 000000000..dc41ce1f4 --- /dev/null +++ b/students/soft1714080902340/layout/first_layout.xml @@ -0,0 +1,21 @@ + + + + + + + \ No newline at end of file diff --git a/students/soft1714080902340/layout/second_layout.xml b/students/soft1714080902340/layout/second_layout.xml new file mode 100644 index 000000000..31bc3a395 --- /dev/null +++ b/students/soft1714080902340/layout/second_layout.xml @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file diff --git a/students/soft1714080902340/menu/main.xml b/students/soft1714080902340/menu/main.xml new file mode 100644 index 000000000..7e43305ec --- /dev/null +++ b/students/soft1714080902340/menu/main.xml @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/students/soft1714080902340/myapplication/FirstActivity.java b/students/soft1714080902340/myapplication/FirstActivity.java new file mode 100644 index 000000000..bb399a94c --- /dev/null +++ b/students/soft1714080902340/myapplication/FirstActivity.java @@ -0,0 +1,47 @@ +package com.cap.myapplication; + +import android.content.Intent; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.widget.Button; +import android.widget.Toast; + +public class FirstActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.first_layout); + + ((Button)findViewById(R.id.bt1)).setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent=new Intent(FirstActivity.this,SecondActivity.class); + startActivity(intent); + } + }); + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + getMenuInflater().inflate(R.menu.main,menu); + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + switch (item.getItemId()){ + case R.id.add_item: + Toast.makeText(this,"You clicked Add",Toast.LENGTH_SHORT).show(); + break; + case R.id.remove_item: + Toast.makeText(this,"You clicked Remove",Toast.LENGTH_SHORT).show(); + break; + default: + } + return true; + } +} diff --git a/students/soft1714080902340/myapplication/SecondActivity.java b/students/soft1714080902340/myapplication/SecondActivity.java new file mode 100644 index 000000000..6093f2b14 --- /dev/null +++ b/students/soft1714080902340/myapplication/SecondActivity.java @@ -0,0 +1,13 @@ +package com.cap.myapplication; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; + +public class SecondActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.second_layout); + } +} diff --git a/students/soft1714080902340/pomodoros_layout.xml b/students/soft1714080902340/pomodoros_layout.xml new file mode 100644 index 000000000..4ccc73673 --- /dev/null +++ b/students/soft1714080902340/pomodoros_layout.xml @@ -0,0 +1,16 @@ + + + +