Replace FrameLayout with LinearLayout or RelativeLayout , because FrameLayout one above the other
LinearLayout : Place the child view in linear mode, one after the other, either horizontally or vertically.
Note. The linear layout also allows you to dynamically distribute the available width and height among child views according to the assigned value of the weight property.
RelativeLayout : A layout where children's positions can be described relative to each other or to the parent
There are many other ViewGroups you can use according to the instructions.
Note: Do not use px instead of dp instead of android:layout_height="420dp" because px represent the actual screen pixel that limits the same size of your views on the big screen (there will be quite a few views), as mentioned here with Density independence
source share