title: android: How to make settings navigation like native settings app
body: <p>How do I make the settings navigation for SwitchReference like Android native settings app?</p>
  
  <p>Where when u click on WiFi region(not on the switch) it will navigate to a new screen:</p>
  
  <p><img src="https://i.stack.imgur.com/hdQYu.png" alt="Click on WiFi"></p>
  
  <p>My app only change the switch from ON to OFF and vice versa even when I'm not clicking on the switch.</p>
  
  <p>I'm using <code>PreferenceFragment</code> and xml for the screen. And my preference is following the example from <a href="http://developer.android.com/reference/android/preference/PreferenceFragment.html" rel="noreferrer">Android PreferenceFragment documentation</a>. I develop my app on ICS 4.0 API 14.</p>
  
  <p>Anyone know how to do this?</p>
  
  <p><strong>Edited:</strong></p>
  
  <p>My XML look like this:</p>
  
  <pre><code>&lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  
      &lt;PreferenceCategory
          android:layout="@layout/preference_category"
          android:title="User Settings" &gt;
          &lt;SwitchPreference
              android:key="pref_autorun"
              android:layout="@layout/preference"
              android:summary="Autorun SMODE on boot"
              android:title="Autorun SMODE" /&gt;
          &lt;SwitchPreference
              android:key="pref_wifi_control"
              android:layout="@layout/preference"
              android:selectable="false"
              android:summary="Controls your Wi-Fi radio automatically based on hotspot availability"
              android:title="Wi-Fi Radio Control" /&gt;
      &lt;/PreferenceCategory&gt;
  &lt;/PreferenceScreen&gt; 
  </code></pre>