android: Which practice is better for using CoordinatorLayout android: Which practice is better for using CoordinatorLayout xml xml

android: Which practice is better for using CoordinatorLayout


CoordinatorLayout is relatively new and it resolves a lot of issues with FloatingActionButton and NavDrawer. So if you must have FAB or NavDrawer I would definitely recommend using CoordinatorLayout as your top level layout from now on (your last code snippet) and inside it you can have RelativeLayout or LinearLayout for more refinement.