Back to project page i_search.
The source code is released under:
GNU General Public License
If you think the Android project i_search listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.shapes.shapes; //from ww w .j ava 2 s. c o m import android.content.Context; import android.graphics.Color; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; public class CustomArrayAdapter<T> extends ArrayAdapter<T> { public CustomArrayAdapter(Context ctx, T [] objects) { super(ctx, android.R.layout.simple_spinner_item, objects); } //other constructors @Override public View getDropDownView(int position, View convertView, ViewGroup parent) { View view = super.getView(position, convertView, parent); //we know that simple_spinner_item has android.R.id.text1 TextView: /* if(isDroidX) {*/ TextView text = (TextView)view.findViewById(android.R.id.text1); text.setTextColor(Color.BLACK);//choose your color :) /*}*/ return view; } }