When do I use Frame Layouts (Design Android UI)?

Asked 7 years ago
Viewed 633 times

0

When do I use Frame Layouts (Design Android UI)?


1 Answer


0

frame layout is used to block the area on the screen which will display a single child view. it is difficult to organize multiple views in the frame layout because the views may react differently with different screen sizes as the views may overlap. to avoid this overlapping the use of attribute

                android:layout_gravity

will help the developer to organize the views according to his/her needs.

When do I use Frame Layouts (Design Android UI)?

as frame layout was introduced in the API level 1, it is much outdated and there is much better layout present at the moment which will work much better than frame layout.

answered 7 years ago by Prateek sharma

Your Answer