Okay so i tried some more....
Now layout xml has only listview as rootview and their is no performance
difference as such....in total view pager has 80 listviews...

But as soon as i add a linear or relative layout as parent to list view
...i am able to see the lag while scrolling....
I also lowered my view pager childs to 5 from 80, but no luck...

Any expert advice ll be appreciated.

Br,
Varun

On Mon, May 7, 2012 at 4:27 PM, Varun Tewari <[email protected]>wrote:

> Guys,
>
> In my recent application, i had 80  items each one is a list view, in my
> View Pager.
> I observed a performance hit, if i create then *dynamically with Java code
> * v/s i*nflating view* from xml.
> I see a terrible lag in swiping left & right,  when i use inflating view
> approach...That's because GC calls increases like hell in logcat....
>
> I use below method for inflating each list view for each view pager.
>
> *mLayoutInflater.inflate(R.layout.list, null, false);*
> *
> *
> I thought we can use View pager like ListViews and GridViews...
>
> Is there something i m missing here???
>
> Br,
> Varun
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to