Android SWITCH . how do I change the on color to green
<p>Below is code to add a switch to a table layout. When the switch is touch it turns RED.  I need it to be GREEN. </p>

<p>I have tried everything to change the ON color to green with no success.</p>

<pre><code> Switch sw1 = new Switch(this);
 sw1.setTag(i);
 if (switchonoff.get(i).equals("true"))
        {
            sw1.setChecked(true);

        }
        else
        {
           sw1.setChecked(false);
         }
        sw1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener()
             {
                @Override
                    public void onCheckedChanged(CompoundButton buttonView, boolean isChecked)
                    {
                        System.out.println("____Switch State: isChecked: " + isChecked +  " " + buttonView.getTag() );
                        Integer tmpint = (Integer)buttonView.getTag();
                        if (isChecked)
                        {
                            switchonoff.set(tmpint, "true");
                        }
                        else
                        {
                            switchonoff.set(tmpint, "false");
                        }

                        for (int i=0; i&lt;mnumberofrows; i++ )
                        {
                            System.out.println("________Switch State: isChecked " + i + " " + switchonoff.get(i));
                        }
                    }
                });
</code></pre>