title: Selected item in navigation drawer
body: <p>I implemented the navigation drawer in my app (<a href="http://developer.android.com/training/implementing-navigation/nav-drawer.html" rel="noreferrer">http://developer.android.com/training/implementing-navigation/nav-drawer.html</a>).</p>
  
  <p>How can I change the display of the actually selected item? I want the selected item to be bold and a different color.</p>
  
  <p>In the official example, they use "setItemChecked", but how can I modify the aspect of the single checked item? The "setOnItemSelectedListener" method doesn't work.</p>
  
  <p>So far, what I do is this piece of code when I open a fragment:</p>
  
  <pre><code>for (int i = 0; i &lt; mDrawerList.getChildCount(); i++){
      TextView t = (TextView) mDrawerList.getChildAt(i);
  
      if(i == fragmentPosition) t.setTextColor(getResources().getColor(R.color.blue));
      else t.setTextColor(getResources().getColor(R.color.black));
  }
  </code></pre>
  
  <p>It works, but on app launch, no item is selected, and I can't set any item because the listview isn't created yet (it's created when we open it the first time, I think).</p>
  
  <p>I tried creating a selector, but don't know how to set the different attributes correctly (item checked, item selected, item clicked??), searched the docs but I don't understand.</p>
  
  <p>Thanks for any help you can provide!</p>