Set a custom adapter