how to set day Mode and Night Mode
<p>Theme.class</p>

<p>main.xml</p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent" &gt;
    &lt;TextView
            android:id="@+id/textView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:layout_centerVertical="true"
            android:padding="@dimen/padding_medium"
            tools:context=".MainActivity" /&gt;
    &lt;Button
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignRight="@+id/textView1"
            android:layout_below="@+id/textView1"
            android:layout_marginRight="59dp"
            android:layout_marginTop="41dp"
            android:text="Button" /&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p>i want set day and night theme on Button click in android. Please tell me how to do this. How create style and all. I am new in android. I tried many not able to do.</p>
