I have one spinner in my project where values comes from database and displays in spinner. But i want to set one default value to spinner as “Select Item” and the values which comes from database needs to be add next to it. The following code which i am using is…
code:
ArrayAdapter<String> adp=new ArrayAdapter<String> (this,android.R.layout.simple_spinner_dropdown_item,arraylist);
spinner.setAdapter(adp);
Here i am adding the values which i get from database as arraylist to spinner & values are displaying directly. But i want to display one default value to be displayed as “Select Item”. How to set that. can anyone please help me with this..? I want as per the below image…

Add element at
0th index using .add(0,"Select Item");MORE CLEAR