title: Cant find specific ID - Android Java
body: <p>Hi guy I´m using the <a href="https://github.com/roughike/BottomBar" rel="nofollow noreferrer">roughike Bottombar</a> and I want to create a OnTabSelectedListener with 5 different Tabs. Currently it´s working with 3 different Tabs but when I want to add a 4 or 5 tab I cant find the speciffic ID of the Tab.</p>
  
  <p>My code looks like this right now:</p>
  
  <pre><code> bbMainNavigation.setOnTabSelectListener(new OnTabSelectListener() {
          @Override
          public void onTabSelected(@IdRes int tabId) {
              Fragment fMainContent = null;
  
              if (tabId == R.id.tBarFriends) {
                  cMainFragment = FriendsFragment.class;
              } else if (tabId == R.id.tBarMessage) {
                  cMainFragment = MessagesFragment.class;
              } else if (tabId == R.id.tBarRadar) {
                  cMainFragment = RadarFragment.class;
              } else if (tabId == R.id.tBarAccount){
                  cMainFragment = AccountFragment.class;
              }
  </code></pre>
  
  <p>My xml with the Tabs looks like that:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;resources&gt;
  
      &lt;tabs&gt;
  
          &lt;tab
              icon="@drawable/friends"
              id="@+id/tBarFriends"
              title="Friends" /&gt;
  
          &lt;tab
              icon="@drawable/message"
              id="@+id/tBarMessage"
              title="Message" /&gt;
  
          &lt;tab
              icon="@drawable/radar"
              id="@+id/tBarRadar"
              title="Radar" /&gt;
  
          &lt;tab
              icon="@drawable/account"
              id="+@id/tBarAccount"
              title="Account" /&gt;
  
          &lt;tab
              icon="@drawable/settings"
              id="+@id/tab_settings"
              title="Settings" /&gt;
      &lt;/tabs&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p></p>
  
  <p>If I try to run the code I get the following error:</p>
  
  <blockquote>
    <p>Error:(40, 41) error: cannot find symbol variable tBarAccount</p>
  </blockquote>
  
  <p>I hope you guys can help me</p>