Skip to content

Commit

Permalink
hzuapps#2 hzuapps#21 第2次实验
Browse files Browse the repository at this point in the history
  • Loading branch information
itgopan committed Sep 28, 2020
1 parent 5bc74e9 commit 42c23a5
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
14 changes: 14 additions & 0 deletions students/net1814080903209/Net1814080903209MainActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.gopan.app;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class Net1814080903209MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
34 changes: 34 additions & 0 deletions students/net1814080903209/Net1814080903209MessageActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package com.gopan.app.MessageActivity;

import android.os.Bundle;

import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.snackbar.Snackbar;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;

import android.view.View;

import com.gopan.app.R;

public class Net1814080903209MessageActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_net1814080903209_message);
Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);

FloatingActionButton fab = 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();
}
});
}

}

0 comments on commit 42c23a5

Please sign in to comment.