0

I have a GridView nested into the following way:

<HorizontalScrollView
    <LinearLayout 
        <com.j4nos.moviebuffs10.CustomGridView

GridView is scrolled programmatically, like: gridview.scrollBy(0, dy); The problem is that content is moving out from the view, but new items are not sliding inside. Why? Do I need to refresh? How often? Scroll method is called quite frequently.

János
  • 32,867
  • 38
  • 193
  • 353

1 Answers1

1

To Update and Refresh the GridView , you need to make changes in GridView Adapter:

 adapter.notifyDataChanged();
 gridView.invalidateViews();
 gridView.setAdapter(adapter);
Sandeep Londhe
  • 405
  • 1
  • 6
  • 17