Understanding PagerAdapter in android -


  1. what method isviewfromobject(view v,object obj) ? everytime have implemented , has been below:-

     @override  public boolean isviewfromobject(view view, object object) {   return (view==object);  } 
  2. considering passing in string urls pageradapter , , instantiate view , add container dynamically using instantiateitem() , how provide implementation getitemposition(object object). understand object passed getitemposition view returned instantiateitem. of course can add tag views instantiated in instantiateitem(), there other way of getting position of thestring passed pageradapter.

please let me know if not clear, can post again if needed.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -