title: GoogleTv LeftNavBar focus
body: <p>I am developing app for the google tv and i have to use <code>left navigation bar</code> in my app. I downloaded the google tv examples and am playing with the leftnavbar to make it work as per my requirements. I want it to behave like the one tv &amp; movies OR youtube app for Google TV. It should expand when focus is moved to its tabs by LEFT D-Pad key and collapse when I move focus from it using RIGHT D-Pad key. </p>
  
  <p>I did't know if there are any properties which will help me achieve this functionality.</p>
  
  <p>So I tried by registering the <code>setOnFocusChangeListener</code> listener and calling <code>flipOption(LeftNavBar.DISPLAY_AUTO_EXPAND)</code> function in it as follows to force it to behave the way i want: </p>
  
  <pre><code>  private LeftNavBar getLeftNavBar() {
      if (mLeftNavBar == null) {
         -------
         -------
          mLeftNavBar.setOnFocusChangeListener(new View.OnFocusChangeListener() {
  
              @Override
              public void onFocusChange(View v, boolean hasFocus) {
  
                  flipOption(LeftNavBar.DISPLAY_AUTO_EXPAND);
              }
          });
  
  
      }
      return mLeftNavBar;
  }
  </code></pre>
  
  <p>Now the above code works fine when there is nothing in leftNavBar. It shows/hides upon receiving/loosing focus. But it does not work when I add some tabs in it.</p>
  
  <p>Any Idea how to achieve it?</p>