diff --git a/app/src/main/java/com/example/cosmosclient/views/MemberListActivity.java b/app/src/main/java/com/example/cosmosclient/views/MemberListActivity.java index 1f2f8c8..fde4eef 100644 --- a/app/src/main/java/com/example/cosmosclient/views/MemberListActivity.java +++ b/app/src/main/java/com/example/cosmosclient/views/MemberListActivity.java @@ -3,11 +3,13 @@ import android.content.Intent; import android.content.SharedPreferences; import android.net.Uri; +import android.support.design.widget.FloatingActionButton; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.BaseAdapter; +import android.widget.Button; import android.widget.ListView; import android.widget.Toast; @@ -34,6 +36,15 @@ super.onCreate(savedInstanceState); setContentView(R.layout.activity_member_list); + FloatingActionButton fab = findViewById(R.id.addrequest_button); + fab.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + + startActivity(new Intent(MemberListActivity.this, AddMemberActivity.class)); + } + }); + //app/CosmosにGETメソッドに必要なデータを取得 Cosmos app = (Cosmos) getApplication(); String token = app.getToken(); @@ -98,8 +109,11 @@ // // クリックリスナーをセット // listView.setOnItemClickListener(this); + + } + // @Override // public void onItemClick(AdapterView parent, View v, // int position, long id) {