View Is Getting Inflated Everytime In Getview. Findviewbyid(...) Is Done Many Times. I Have Used View Holder
public View getView(final int pos, View arg1, ViewGroup arg2) { ViewHolder holder; View view = arg1; if (arg1 == null) { holder = new ViewHolder(); Sy
Solution 1:
If you have three items in your list, and there is space on the screen for three rows in your ListView
, getView()
will be called three times with a null
View
to create those three rows. You cannot recycle a row that is presently in use.
Post a Comment for "View Is Getting Inflated Everytime In Getview. Findviewbyid(...) Is Done Many Times. I Have Used View Holder"