This also does not work:
        public View getView(int position, View convertView, ViewGroup parent) {
                // TODO Auto-generated method stub
                View rowView;
            rowView = (TextView) super.getView(position, convertView, parent);
//          ((TextView)rowView).setTextColor(0x64788e);
            rowView.setBackgroundColor(0x64788e);
                return rowView;
        }

On Thu, Jan 5, 2012 at 10:57 AM, John Davis <[email protected]> wrote:
> I changed the getview code so it only calls the super code once and
> returns the rowView as you did.
>
>>
>> public class MyAdapter<T> extends ArrayAdapter<T> {
>>
>>        public MyAdapter(Context context, int textViewResourceId, T[] 
>> objects) {
>>                super(context, textViewResourceId, objects);
>>        }
>>        // context, int, <T>[]
>>
>>        @Override
>>        public View getView(int position, View convertView, ViewGroup parent) 
>> {
>>                // TODO Auto-generated method stub
>>                View rowView;
>>            rowView = super.getView(position, convertView, parent);
>>            ((TextView)rowView).setTextColor(0x64788e);
>>                return rowView;
>>        }
>>
>>
>
> And removed the code in the main class to dork with the view.  It is
> still invisible text.  I was assuming this code would make all the
> text items be red in color.  I really want to be able to set certain
> lines to red and others to blue.



-- 
John F. Davis

独树一帜

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to