I don't know why I earlier changed FrameLyaout to RelativeLayout. Reverting that part of the change.