title: Views in Custom ListView item don't have apptheme
body: <p><strong>Problem:</strong></p>
  
  <p>I have a custom adapter for my <code>listview</code> which currently contains a <code>checkbox</code> and an <code>edittext</code>. I haven't changed any themes in the <code>res/values/styles</code> folder. For some reason the <code>checkbox</code> and <code>edittext</code> have a different style/theme than the normal style/theme ("AppTheme"). </p>
  
  <p>Automatically generated theme: </p>
  
  <pre><code>&lt;!-- Base application theme. --&gt;
  &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
  &lt;!-- Customize your theme here. --&gt;
      &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>But the checkbox is white, and can only be seen when it is checked. (color is not the colorAccent set above) And the edittext has the same color the checkbox has when it is checked (green/blueish). </p>
  
  <p>colors:</p>
  
  <pre><code>&lt;color name="colorPrimary"&gt;#3F51B5&lt;/color&gt;
  &lt;color name="colorPrimaryDark"&gt;#303F9F&lt;/color&gt;
  &lt;color name="colorAccent"&gt;#FF4081&lt;/color&gt;
  </code></pre>
  
  <p><strong>What have I tried?</strong></p>
  
  <p>I tried setting the theme/style of the container of the item and the item itself, with the xml attributes <code>android:theme</code> and <code>style</code>. Each to no avail. </p>
  
  <p>Is this normal? If so, how do I change the style/theme of the listitem? If not, what could be wrong?</p>
  
  <p>My listitem.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="horizontal" android:layout_width="match_parent"
  android:layout_height="match_parent" &gt;
  
  &lt;CheckBox
      android:id="@+id/cb_listitem"
      android:layout_width="0dp"
      android:layout_height="match_parent"
      android:layout_weight="1"/&gt;
  
  &lt;EditText
      android:id="@+id/editText_listitem"
      android:layout_width="0dp"
      android:layout_height="match_parent"
      android:layout_weight="9"
      android:textColor="@color/black"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>getView in custom adapter:</p>
  
  <pre><code>@Override
  public View getView(int position, View convertView, ViewGroup parent) {
      ViewHolder holder = null;
  
      if (convertView == null){
          LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          convertView = inflater.inflate(R.layout.listitem_note_checkbox, null);
          holder = new ViewHolder();
          holder.checkBox = (CheckBox)convertView.findViewById(R.id.cb_listitem);
          holder.editText = (EditText)convertView.findViewById(R.id.editText_listitem);
          convertView.setTag(holder);
  
  
      } else {
          holder = (ViewHolder) convertView.getTag();
      }
  
      holder.editText.setText(items.get(position).note);
      return convertView;
  }
  </code></pre>
  
  <p>screenshots:</p>
  
  <p><a href="https://i.stack.imgur.com/KlSEb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KlSEb.png" alt="screenshot checkbox not checked"></a>
  <a href="https://i.stack.imgur.com/faKay.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/faKay.png" alt="screenshot checkbox checked"></a></p>
  
  <p>as we can see the radio buttons have the default layout, accentcolor "pink" and they have a grey outlining. but the checkbox outlining is white, and the accentcolor is blue/greenish. </p>