Problem with Android togglebutton
<p>I tried to set up my togglebutton properties layout using style.xml.
Here's my code:</p>

<pre><code>    &lt;ToggleButton android:id="@+id/button_toggle_1" style="button_test_1"/&gt;

    &lt;ToggleButton android:id="@+id/button_toggle_2"
        android:textOff="test2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" /&gt;

    &lt;ToggleButton android:id="@+id/button_toggle_3" style="button_test_3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" /&gt;
</code></pre>

<p>For ID=button_toggle_1, I apply a style (style.xml), here's the code:</p>

<pre><code>&lt;style name="button_test_1"&gt;
    &lt;item name="android:textOff"&gt;test1&lt;/item&gt;
    &lt;item name="android:layout_width"&gt;wrap_content&lt;/item&gt;
    &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
&lt;/style&gt;

&lt;style name="button_test_3"&gt;
    &lt;item name="android:textOff"&gt;test3&lt;/item&gt;
&lt;/style&gt;
</code></pre>

<p>I can see button 2 and 3 but the text for button 3 is different from what I set it to be. button 3 text = "APAGADO". From this test, I conclude that togglebutton simply cannot set its properties using style.xml. Is this true? or did I do something wrong?</p>

<p>If toggle button is "special", anyone knows the reason why? is this "special" condition applies to other things as well?</p>

<p>Thanks!</p>
