示例#1
0
  public void onItemClick(AdapterView<?> parent, View view, int pos, long id) {
    // Get the name of the selected mineral
    String mineralName = (String) ((ListView) findViewById(R.id.oreList)).getItemAtPosition(pos);
    data.removeMineralFromSector(currentSector, new Mineral(null, mineralName));

    refreshCurrentSector();
    setMineralLists(currentSector);
  }