Skip to content

Commit

Permalink
Merge pull request #1384 from CapWu/master
Browse files Browse the repository at this point in the history
#2 #1178 #实验二
  • Loading branch information
zengsn authored Apr 11, 2019
2 parents e8cbca9 + 12b658e commit 44e3f87
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 223 deletions.
45 changes: 45 additions & 0 deletions students/soft1714080902340/PomodorosActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package com.cap.pomodoros;

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.Toast;
import com.cap.pomodoros.*;

public class PomodorosActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.pomodoros_layout);
}


@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;
}





}
170 changes: 0 additions & 170 deletions students/soft1714080902340/drawable/ic_launcher_background.xml

This file was deleted.

21 changes: 0 additions & 21 deletions students/soft1714080902340/layout/first_layout.xml

This file was deleted.

16 changes: 0 additions & 16 deletions students/soft1714080902340/layout/second_layout.xml

This file was deleted.

16 changes: 0 additions & 16 deletions students/soft1714080902340/pomodoros_layout.xml

This file was deleted.

0 comments on commit 44e3f87

Please sign in to comment.