Amir Amir - 8 months ago 38
Android Question

What is the main reason to prefer Frame Layout

I am new in android. I learnt different layouts. But I am not realising Why would I exactly prefer Frame layout instead of Relative Layout ?


In framelayout we can have multiple view over one another. It will help you create overlay designs.

Frame layout is used when you want to show one item on each screen. Using frame layout, we can have multiple items, but they will be overlapping and only only displaying themselves one at a time.

FrameLayout is particularly useful when you want to create animation or movement on screen.