Aligned the locations using layout_weight. Removed unnecessary FrameLayout. Removed unnecessary invisible and later-visibility.