0

When I refill the adapter of BrowseFragmnet and the header column is not showing, The items are moving to the right, causing an empty space between the Header column and the RowsFragment as the following image. How can I fix this issue?

enter image description here

This is how I am updating the adapter as an example:

  adapter.clear();
  ...
  adapter.add(new ListRow(new IconHeaderItem(0,category,featureCat.Icon), fragmentAdapter));
  ...
  if(adapter.size()>0)
    adapter.notifyArrayItemRangeChanged(0,(adapter.size()-1));
nadine87
  • 500
  • 5
  • 17
  • Add your xmls also ! It may be possible that you have some padding/margins in your xml's. – Pawan Aug 09 '16 at 09:06
  • there is no padding in xml, first load works perfectly with no margins, this happens only on reload, the problem seems to me that the headers fragment should be expanded, this gap is equal to the header fragment width. – nadine87 Aug 09 '16 at 10:08

0 Answers0