Using my customview, the view cannot be drawn correctly when passing drawable by xml. The view is drawn correctly at first, after switching foreground to background and agai