title: SetId() and then findviewById in java programmatically issue
body: <p>Hi i am trying to setId programmatically, but the issue is how to find that id after setting it in java. i am working in <code>fragments (Viewpager)</code>and here is my code below.</p>
  
  <pre><code>property=new SearchableSpinner(getActivity());
  city.setId(R.id.citybuy);
  town.setId(R.id.townbuy);
  property.setId(R.id.propertybuy);
  
   city = (SearchableSpinner) this.view.findViewById(R.id.citybuy);
    town = (SearchableSpinner) this.view.findViewById(R.id.townbuy);
   property = (SearchableSpinner) this.view.findViewById(R.id.propertybuy);
  </code></pre>
  
  <p>and it didn't find <code>id</code> and shows <code>NullPointerException</code>
  and if i <code>set id</code> through <code>XML</code> then it shows this <code>error</code>:</p>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException: Wrong state class, expecting View
    State but received class
    gr.escsoft.michaelprimez.searchablespinner.SearchableSpinner$SavedState
    instead. This usually happens when two views of different type have
    the same id in the same hierarchy..This view's id is id/city_wanted.
    Make sure other views do not use the same id</p>
  </blockquote>
  
  <p>Though <code>id's</code> are different in all <code>fragments XML</code></p>