Android custom control to generate the corresponding layout based on the entity properties