title: How to change text color in some headers in Expandable List
body: <p>I would like to apply different colours to the header (i.e. the 1st level items) in my Expandable List.
  How can I do that?</p>
  
  <p>I am using the following class for my expandable list in my Android app.</p>
  
  <pre><code>public class ExpandableListAdapter extends BaseExpandableListAdapter {...}
  </code></pre>
  
  <p>And inside it, this is the call to getGroupView() function</p>
  
  <pre><code>@Override
  public View getGroupView(int groupPosition, boolean isExpanded,
          View convertView, ViewGroup parent) {
      String headerTitle = (String) getGroup(groupPosition);
      if (convertView == null) {
          LayoutInflater infalInflater = (LayoutInflater) this._context
                  .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          convertView = infalInflater.inflate(R.layout.list_group, null);
      }
  
      TextView lblListHeader = (TextView) convertView
              .findViewById(R.id.lblListHeader);
      lblListHeader.setTypeface(null, Typeface.BOLD);
      lblListHeader.setText(headerTitle);
  
      return convertView;
  }
  </code></pre>
  
  <p>I defined my XML layout, called list_group, as follows.
      </p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:orientation="vertical"
  android:padding="8dp"
  android:background="#000000"&gt;
  
  
  &lt;TextView
      android:id="@+id/lblListHeader"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:paddingLeft="?android:attr/expandableListPreferredItemPaddingLeft"
      android:textSize="17dp"
      android:textColor="#ff9900" /&gt;
  
   &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>As you can see, I specified text color to #ff9900.</p>
  
  <p>However, I would like to have SOME headers in the list view in #ff9900 color, and other headers in a different colour (e.g. red).</p>
  
  <p>How could I use a boolean variable to load a different XML layout based on which colour I want for my item?</p>
  
  <p>Thanks a lot.</p>