Skip to content

Commit

Permalink
Merge pull request #4907 from salachi/TIMOB-15646
Browse files Browse the repository at this point in the history
TIMOB-15646-Added code for footer view
  • Loading branch information
hieupham007 committed Nov 8, 2013
2 parents d5ebdca + c5f79e7 commit 2edbf95
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,18 @@ public ArrayList<Item> getViewModel()
viewModel.add(itemForHeader(index, section, null, footerTitle));
}

if (section.hasProperty(TiC.PROPERTY_FOOTER_VIEW)) {
Object footerView = section.getProperty(TiC.PROPERTY_FOOTER_VIEW);
if (footerView instanceof TiViewProxy) {
Item item = new Item(index);
item.proxy = (TiViewProxy) footerView;
item.className = TableViewProxy.CLASSNAME_HEADERVIEW;
viewModel.add(item);
} else {
Log.e(TAG, "FooterView must be of type TiViewProxy");
}
}

sectionIndex++;
indexInSection = 0;
}
Expand Down

0 comments on commit 2edbf95

Please sign in to comment.