fazlurr
2/5/2015 - 12:12 PM

Change text color in simple list - http://stackoverflow.com/a/19155481

Change text color in simple list - http://stackoverflow.com/a/19155481

ArrayAdapter<String> adapter = new ArrayAdapter<String>(getApplicationContext(), android.R.layout.simple_list_item_1, mStringList) {
    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        View view = super.getView(position, convertView, parent);
        TextView text = (TextView) view.findViewById(android.R.id.text1);
        text.setTextColor(Color.BLACK);
        return view;
    }
};