When adding a panel in the designer, it is always defaulted to opaque, but it seems when i create one in code it always defaults to transparent, at least if i load a layout file into it. The only way i see around it so far is to always create a colordrawable and it has to be assigned after the loadlayout. Is this the correct design or is there something set wrong in my layout files?