Custom Adapter for Header based List View, Code refractor