Below is my current code that adds my array_spinner to my adapter and then adds the adapter to my spinner. QUESTIONS:
1- I am not sure how I would use the following code to style my drop down: areaspinner.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
and how do I apply a custom view/text view? I need to style the text item in the spinner drop down.
2- Do I need to create a a separate layout.xml file for this view?
Any info would be great. Thanks!
array_spinner=new String[4];
array_spinner[0]="Select";
array_spinner[1]="George Washington";
array_spinner[2]="Benjamin Franklin";
array_spinner[3]="Thomas Jefferson";
//CREATE SPINNER
areaspinner = (Spinner) findViewById(R.id.areaspinner);
ArrayAdapter<String> adapter =
new ArrayAdapter<String> (this, android.R.layout.simple_spinner_item,array_spinner);
areaspinner.setAdapter(adapter);