title: What does the Android Design guide say about expanding/collapsing ListView items depending on Switch
body: <p>I have a settings oriented application for both Android and iOS and I'm currently implementing a new feature. </p>
  
  <p>In my iOS application, I have a List of different settings and among them is a switch. When the switch is OFF, some list rows (or none) are shown and when the switch is ON, some <em>other</em> list rows are shown. </p>
  
  <p>When I browsed through Android's Settings menu, I noticed that the pattern seems to be to disable settings rows instead of hiding them, depending on the switch state (ON / OFF).</p>
  
  <p>The behaviour I'm looking for is similar to the Android settings menu where the user disables the Wifi and all Wifi settings disappear, but I want to do this for specific rows in the list and not on the whole "page" / "view".</p>
  
  <p>Is there anything in Android's style guides that says I shouldn't hide / show list rows depending on a switch?</p>
  
  <p><a href="https://i.stack.imgur.com/puMKk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/puMKk.png" alt="enter image description here"></a></p>
  
  <p>iOS application Switch ON and 3 corresponding rows.</p>
  
  <p><a href="https://i.stack.imgur.com/4etkw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4etkw.png" alt="enter image description here"></a></p>
  
  <p>iOS application Switch OFF and 2 corresponding rows.</p>
  
  <p><a href="https://i.stack.imgur.com/cchyM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cchyM.png" alt="enter image description here"></a></p>
  
  <p>Android Settings menu Switch OFF and disabled row (Android Beam) that is not disabled if the switch is ON. </p>
  
  <p>Observe that I'm not looking for options, but what Android's style guide (Lollipop+ and design compat) says about this.</p>