title: Android Toolbar Title
body: <p>Unable to change toolbar title I set title in <code>manifeast.xml</code> &amp; also used <code>setTitle("TITLE");</code></p>
  
  <p>I set title as <strong>History &amp; Reports</strong> but it display different title <strong>Notifications</strong> which is another activity title.</p>
  
  <p>I checked <code>manifeast.xml</code>  but No change, Can anyone please help me from this. </p>
  
  <p><strong>Here is my code</strong> </p>
  
  <pre><code>public class Nav_HistoryAndReports extends AppCompatActivity {
  
  private Toolbar toolbar;
  private TabLayout tabLayout;
  private ViewPager viewPager;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setTitle("History &amp; Reports");
      setContentView(R.layout.nav_history_and_reports);
  
      toolbar = (Toolbar) findViewById(R.id.toolbar);
      setToolbar(toolbar);
  
      viewPager = (ViewPager) findViewById(R.id.viewpager);
      setupViewPager(viewPager);
  
      tabLayout = (TabLayout) findViewById(R.id.tabs);
      tabLayout.setupWithViewPager(viewPager);
  }
  
  public void setToolbar(Toolbar toolbar) {
      setSupportActionBar(toolbar);
      getSupportActionBar().setDisplayHomeAsUpEnabled(true);
  }
  
  private void setupViewPager(ViewPager viewPager) {
      ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());
      adapter.addFragment(new FragmentHistoryAndReports_Visits(), "VISITS");
      adapter.addFragment(new FragmentHistoryAndReports_Visitors(), "VISITORS");
      adapter.addFragment(new FragmentHistoryAndReports_Map(), "MAP");
      viewPager.setAdapter(adapter);
  }
  
  class ViewPagerAdapter extends FragmentPagerAdapter {
      private final List&lt;Fragment&gt; mFragmentList = new ArrayList&lt;&gt;();
      private final List&lt;String&gt; mFragmentTitleList = new ArrayList&lt;&gt;();
  
      public ViewPagerAdapter(FragmentManager manager) {
          super(manager);
      }
  
      @Override
      public Fragment getItem(int position) {
          return mFragmentList.get(position);
      }
  
      @Override
      public int getCount() {
          return mFragmentList.size();
      }
  
      public void addFragment(Fragment fragment, String title) {
          mFragmentList.add(fragment);
          mFragmentTitleList.add(title);
      }
  
      @Override
      public CharSequence getPageTitle(int position) {
          return mFragmentTitleList.get(position);
      }
  }
  </code></pre>
  
  <p><strong>toolbar.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:id="@+id/toolbar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_margin="1dp"
      android:background="@color/white"
      android:fitsSystemWindows="true"
      android:minHeight="?attr/actionBarSize"
      android:titleTextColor="@color/colorPrimary"
      app:layout_scrollFlags="scroll|enterAlways"
      app:navigationIcon="?attr/homeAsUpIndicator"
      app:theme="@style/GalaxyZooThemeToolbarDarkOverflow"&gt;
  
  &lt;/android.support.v7.widget.Toolbar&gt;
  </code></pre>