Android Spinner to determine Marker Colour
Clash Royale CLAN TAG #URR8PPP Android Spinner to determine Marker Colour I have a spinner which I have created for a project in Android studio. The spinner takes the following values from an array in my strings.xml file. <string-array name="activity_types"> <item>Games</item> <item>Learn</item> <item>Fitness</item> <item>Make</item> <item>Explore</item> <item>Find</item> </string-array> I would like to create a function which places a marker of a particular colour onto my map in MainActivity i.e. selecting Games, will place an orange marker on the map, when 'Games' is selected and the 'Place' button (below) is pressed. However, I am not sure how to go about this? place_btn = (Button) findViewById(R.id.place_btn); place_btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //what would handle the...