Code example for View

Methods: setBackgroundColor

0
 
    @Override 
    public View getView(int position, View convertView, ViewGroup parent) {
      View result=super.getView(position, convertView, parent);
 
      result.setBackgroundColor(0xFF330000 + (position * 0x0A0A));
 
      return(result);
    } 
  } 
} 
Contextual code suggestions in your IDE  Get Codota for Java