Add interface for creating layout programmatically.