vi = inflater.inflate(R.layout.result_list_item, null);
vi = inflater.inflate(R.layout.result_list_item, parent, false);
I finaly got it.. I changed this
View rowView = inflater.inflate(R.layout.rowlayout, parent, false); to this: View rowView = inflater.inflate(R.layout.listinflate,null); Im always confuse of using inflater.. the listinflate file contains the textview while the rowlayout contains the listview. Thats why i got nullpointer cause i use rowlayout.. i change the parent,false to null..
So, that's solved. I tried rebulding, cleaning project. Then I deleted it from workspace and reopened - it worked. That is Eclipse bug, that's horrible, I wasted couple of hours! Thanks to all for responses! Sorry for disturbing...
Android ViewPager children not shown when instantiated using a composite widget rather than an inflated layout
I am unable to instantiate it as a child in a ViewPager. If I however, inflate the layout without the widget wrapper, it works.
Solved it, realised I was inflating it at the wrong event, it should be done in the constructor. Heres the right code:http://pastebin.com/hYDhXxdp
ViewPager on the root-level of an activity. Each page of the pager contains a ListFragment (backed by a FragmentPagerAdapter).