title: Why my ViewPager is so slow?
body: <p>Inside the dialogFragment I have viewPager with two pages. Every page contains a custom adapter. One adapter with list of spinners, other adapter with list of EditTexts. ViewPager adds adapters fine.</p>
  
  <pre><code>public class PageFragment extends Fragment {
      ...
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
      Bundle savedInstanceState) {
      View view = inflater.inflate(R.layout.pagefragment_newprod, null);
  
      LinearLayout ll=(LinearLayout) view.findViewById(R.id.tvLL);
      ListView listView=new ListView(getActivity());
      ll.addView(listView);
  
      if (pageNumber==0){
          dropDownAdapter=new DropDownAdapter(getActivity(), fillListAdapter);
          listView.setAdapter(dropDownAdapter);
      } else if (pageNumber==1){
          boxAdapter = new BoxAdapter(getActivity(), filledFields);
          listView.setAdapter(boxAdapter);
      }
      return view;
      }
  }
  </code></pre>
  
  <p>But it works to slow! Current Adapter (I mean at the curren page) create views every milisecond! Look at this:</p>
  
  <pre><code>public class BoxAdapter extends BaseAdapter{
   ...
  @Override
  public View getView(final int position, View convertView, ViewGroup parent) {
      if (view == null) {
          view = lInflater.inflate(R.layout.addproduct_item, parent, false);
      }
      Log.d(LOG_TAG, "====As I said every milisecond...======");
      EditText editText = (EditText) view.findViewById(R.id.addProductEditText);
      editText.setText(p.value);
      return view;
      }
  }   
  </code></pre>
  
  <p>Even when I focused the EditText this Log.d write messages every milisecond!
  Besides that, adapter at the next page works too. I have other Log.d at the other adapter getView and it works when I used different page's adapter!</p>
  
  <p>Please help me to understand what is wrong...(</p>