Creating an generic adapter for ListView layouts