Add common loading layout, with xml settable