Ejemplo n.º 1
0
  private void SetTeam2ColorList(int Location) {
    DBOperation_team db = new DBOperation_team(getApplicationContext());
    Team2ColorList = new ArrayList<String>();

    if (Team2IdList.size() > 0) {
      Team2ColorList = db.LoadColor(Team2IdList.get(Location));
    }
    Color2Adapter = new ArrayAdapter<String>(this, R.layout.spinner_big, Team2ColorList);
    Color2Adapter.setDropDownViewResource(R.layout.spinner_dropdown);
  }
Ejemplo n.º 2
0
  private void SetTeam2List() {
    DBOperation_team db = new DBOperation_team(getApplicationContext());
    Team2IdList = new ArrayList<Integer>();
    Team2NameList = new ArrayList<String>();

    Team2IdList = db.LoadId();
    Team2NameList = db.LoadName();

    Team2Adapter = new ArrayAdapter<String>(this, R.layout.spinner_big, Team2NameList);
    Team2Adapter.setDropDownViewResource(R.layout.spinner_dropdown);

    spinner_team2.setAdapter(Team2Adapter);
  }