-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMessageFragment.java
49 lines (36 loc) · 1.25 KB
/
MessageFragment.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.sharedspaces.sharedspaces;
import android.app.AlertDialog;
import android.app.Fragment;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import java.util.ArrayList;
//TODO: implement chat system and info on who is in group
public class MessageFragment extends Fragment implements View.OnClickListener {
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.message_fragment, container, false);
Button groupChat = (Button) v.findViewById(R.id.button1);
groupChat.setOnClickListener(this);
return v;
}
@Override
public void onClick(View v){
switch(v.getId()){
case R.id.button1:
Intent intent = new Intent(getActivity(),ChatLog.class);
startActivity(intent);
break;
}
}
}