I have created a spinner at the header of a listview. How do I add text into it? I would like to show the text in the spinnerText.
String[] spinnerText = { "Sort by date posted (latest to oldest)", "Sort by price (lowest to highest)"}; LayoutInflater inflater = LayoutInflater.from(this); View spinTop = inflater.inflate(R.layout.spin, null); getListView().addHeaderView(spinTop);