project_files/Android-build/SDL-android-project/src/org/hedgewars/mobile/TeamSelectionActivity.java
branchhedgeroid
changeset 5633 443b7c6543e5
parent 5627 ce2d92589cbc
equal deleted inserted replaced
5630:a5a338628633 5633:443b7c6543e5
    66 		addTeam.setOnClickListener(addTeamClicker);
    66 		addTeam.setOnClickListener(addTeamClicker);
    67 		back.setOnClickListener(backClicker);
    67 		back.setOnClickListener(backClicker);
    68 
    68 
    69 		availableTeams = (ListView) findViewById(R.id.availableTeams);
    69 		availableTeams = (ListView) findViewById(R.id.availableTeams);
    70 		availableTeamsList = FrontendDataUtils.getTeams(this);
    70 		availableTeamsList = FrontendDataUtils.getTeams(this);
    71 		SimpleAdapter adapter = new SimpleAdapter(this, availableTeamsList, R.layout.team_selection_entry, new String[]{"txt", "img"}, new int[]{R.id.txtName, R.id.imgDifficulty});
    71 		SimpleAdapter adapter = new SimpleAdapter(this, availableTeamsList, R.layout.team_selection_entry_simple, new String[]{"txt", "img"}, new int[]{R.id.txtName, R.id.imgDifficulty});
    72 		availableTeams.setAdapter(adapter);
    72 		availableTeams.setAdapter(adapter);
    73 		registerForContextMenu(availableTeams);
    73 		registerForContextMenu(availableTeams);
    74 		availableTeams.setOnItemClickListener(availableClicker);
    74 		availableTeams.setOnItemClickListener(availableClicker);
    75 
    75 
    76 		selectedTeams = (ListView) findViewById(R.id.selectedTeams);
    76 		selectedTeams = (ListView) findViewById(R.id.selectedTeams);