diff --git a/app/src/main/java/org/ntlab/irisclient/GamePlayerListFragment.java b/app/src/main/java/org/ntlab/irisclient/GamePlayerListFragment.java index 31e3212..d8ea978 100644 --- a/app/src/main/java/org/ntlab/irisclient/GamePlayerListFragment.java +++ b/app/src/main/java/org/ntlab/irisclient/GamePlayerListFragment.java @@ -8,14 +8,16 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.widget.TextView; +import android.view.Gravity; public class GamePlayerListFragment extends Fragment { - private String myteam; + private String myTeam; public GamePlayerListFragment(String team) { - myteam = team; + myTeam = team; } public static DrawingCardFragment newInstance(String str){ // インスタンス生成 @@ -29,16 +31,22 @@ Resources resources = getResources(); View view = inflater.inflate(R.layout.fragment_game_player_list, container, false); + Checkteam(view); + return view; } //赤チームのプレイヤー全員を表示 //青チームのプレイヤー全員を表示 - private String Checkteam(String team){ - if(team.equals("r")){ + private String Checkteam(View view){ + if(myTeam.equals("r")){ + TextView teamtext = (TextView) view.findViewById(R.id.textView5); + teamtext.setText("赤"); return "赤チーム"; }else{ + TextView teamtext = (TextView) view.findViewById(R.id.textView5); + teamtext.setText("青"); return "青チーム"; } }