Does one activity can only contains one theme in android?
<p>I found that There is a <code>ContextWrapperTheme</code> class in android. And <code>activity</code> just inherits from it. So i doubt only one theme can specify to one activity. </p>

<p>I have this problem because i have a demand to specify all the text color of <code>TextView</code> in a <code>ViewGroup</code>. And this <code>ViewGroup</code> is attached to <code>AlertDialog</code> using <code>setView</code> method. But i after i set the theme of this 'ViewGroup' with 'Theme.Light', the color still won't change. Here is the code.</p>

<pre><code>        case DIALOG_TEXT_ENTRY:
        // This example shows how to add a custom layout to an AlertDialog
        LayoutInflater factory = getLayoutInflater();
        final View textEntryView = factory.inflate(R.layout.alert_dialog_text_entry, null);
        return new AlertDialog.Builder(AlertDialogSamples.this)
            .setIcon(R.drawable.alert_dialog_icon)
            .setTitle(R.string.alert_dialog_text_entry)
            .setView(textEntryView)
            .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int whichButton) {

                    /* User clicked OK so do some stuff */
                }
            })
            .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int whichButton) {

                    /* User clicked cancel so do some stuff */
                }
            })
            .create();
    }
    return null;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"&gt;

&lt;TextView 
    style="@android:style/Theme.Light"
    android:id="@+id/username_view"
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    android:layout_marginLeft="20dip"
    android:layout_marginRight="20dip"
    android:text="@string/alert_dialog_username"
    android:gravity="left"
    android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
</code></pre>
