diff --git a/app/src/main/java/org/ntlab/irisclient/GamePlayerListFragment.java b/app/src/main/java/org/ntlab/irisclient/GamePlayerListFragment.java index d8ea978..79ef6b7 100644 --- a/app/src/main/java/org/ntlab/irisclient/GamePlayerListFragment.java +++ b/app/src/main/java/org/ntlab/irisclient/GamePlayerListFragment.java @@ -8,9 +8,16 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.widget.BaseAdapter; +import android.widget.ListView; import android.widget.TextView; import android.view.Gravity; +import org.ntlab.irisclient.models.Member; + +import java.util.ArrayList; +import java.util.List; + public class GamePlayerListFragment extends Fragment { private String myTeam; @@ -33,6 +40,19 @@ View view = inflater.inflate(R.layout.fragment_game_player_list, container, false); Checkteam(view); + ArrayList viewPlayers = new ArrayList<>(); + List gMembers = new ArrayList<>(); + + //ใƒ†ใ‚นใƒˆ็”จ + viewPlayers.add("test0"); + viewPlayers.add("test1"); + + ListView playersList = (ListView) view.findViewById(R.id.PlayersList); + + BaseAdapter adapter = new MemberListAdapter(this.getActivity().getApplicationContext(), R.layout.member_list_layout, viewPlayers, gMembers); + playersList.setAdapter(adapter); + + return view; }