title: ListView.setFooterView(v) Footer change not visible In ListView displayed by VIewPager
body: <p>I call </p>
  
  <pre><code>listView.setFooterView(v)
  </code></pre>
  
  <p>but no change is visible.  Now I should add that the listView is inside a view (not a frament) that is added into a ViewPager.</p>
  
  <p>So the View that holds the listView is inside the view pager.  If I switch back and forth between the views then I see the change, but not otherwise.  So far I have tried invalidating most everything including the whole ViewPager but still it does not show.</p>
  
  <p>Inside activities layout I have: </p>
  
  <pre><code> &lt;android.support.v4.view.ViewPager
  android:id="@+id/viewPager"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:background="@color/white"
  android:layout_weight="1"
  /&gt;
  </code></pre>
  
  <p>Then I have three pages each looks like this:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:id="@+id/listListDisplayer1"
  android:layout_width="match_parent"
  android:layout_height="match_parent" &gt;
  &lt;ListView
      android:id="@+id/listMyList1"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:cacheColorHint="#00000000"
      android:fastScrollEnabled="true" /&gt;
  
  &lt;include layout="@layout/advertisement" /&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>So I have views like above and create them right away in onCreate() of the main activity.</p>
  
  <pre><code> MyPageAdapter extends ViewPagerAdapter{
  
        int getCount() {
             return 3;
        }
  
         public Object instantiateItem(View collection, int position) {
  
          View view=null;
  
          switch (position) {
              case 0:
                  view = getMyView1();
                  break;
              case 1:
                  view = getMyView2();
                  break;
              case 2:
                  view = getMyView2();
                  break;
          }
  
          if ((view != null) &amp;&amp; ((ViewPager) collection).findViewById(view.getId()) == null)
          {
  
            ((ViewPager) collection).addView(view, 0);
          }
  
          return view;
      }
  
  
      private View getMyView1()
      {   
          return mMyView1;
      }
  
  
      private View getMyView2()
      {
          return  mMyView2;
      }
  
  
  
      private View getMyView3()
      {
          return mMyView3;
      }
  
  
      @Override
      public void destroyItem(View view, int arg1, Object arg2) {
          ((ViewPager) view).removeView((View) arg2);
  
      }
  
      @Override
      public void finishUpdate(View view) {
  
  
      }
  
      @Override
      public boolean isViewFromObject(View view, Object arg1) {
          return view == ((View) arg1);
  
      }
  
      @Override
      public void restoreState(Parcelable parcel, ClassLoader classLoader) {
      }
  
      @Override
      public Parcelable saveState() {
  
          return null;
      }
  
      @Override
      public void startUpdate(View view) {
  
  
      }
  
  
  }
  </code></pre>
  
  <p>I will update with a few more lines ....</p>
  
  <pre><code>     private class PageChangeListener implements OnPageChangeListener {
  
      @Override
      public void onPageScrollStateChanged(int scrollState) {
          // TODO Auto-generated method stub
  
      }
  
      @Override
      public void onPageScrolled(int arg0, float arg1, int arg2) {
          // TODO Auto-generated method stub
  
      }
  
      @Override
      public void onPageSelected(int pageNum) {
          Logout.debug("pageSelected :"+pageNum); 
          if (pageNum == 0)
          {
              prepareMyView1();
          }
          else if (pageNum == 2)
          {
             prepareMyView2();
          }
          else if (pageNum == 3)
          {
              prepareMyView3();
          }
      }
  
  }
  
      private void prepareMyView1()   // each is like this setting adapter on ListView
  {   
      setMyList1Adapter();
  }
  
       private void prepareMyView2()   // each is like this setting adapter on ListView
  {   
      setMyList2Adapter();
  }
  </code></pre>
  
  <p>So I want a change in addFooterView to be effected | visible immediately.</p>