Beispiel #1
0
  public void CreateLayout() {
    final ArrayList<String> playerNamesList = PlayerHelper.getNameList(draft.getPlayers());

    playerView = (ListView) findViewById(R.id.players);

    final ArrayAdapter<String> playerNamesAdapter =
        new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, playerNamesList);

    playerView.setAdapter(playerNamesAdapter);
  }
Beispiel #2
0
  public void BeginDraft(View view) {
    Intent intent = new Intent(this, DraftRounds.class);
    Bundle bundle = new Bundle();

    draft.nextRound();

    bundle.putSerializable("GameData", draft);
    intent.putExtras(bundle);

    startActivity(intent);
  }