• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

layout manager

A launcher

No. A layout manager is something used to position UI components in your app. There are various types available, depending on how you want your UI to look. Some layout managers just position the components in a simple grid, whereas others allow you to position relative to other things on the screen.
Example below is the LinearLayoutManager, which positions components in a horizontal or vertical orientation.

https://developer.android.com/reference/android/support/v7/widget/LinearLayoutManager.html
 
Thanks for the detailed answer!!! But can u please tell me why is a ViewPager considered to be a layout manager?

Well the clue's in the name really, because every UI component in Android is treated as a 'View'. So a Button is a View, a Fragment is a View etc.
The ViewPager allows you to swipe left and right through pages of data. These pages are normally Fragment Views, containing other UI components. Therefore the ViewPager is managing other layouts.
Besides, Google's official documentation starts off the description of ViewPager with 'Layout Manager', so that's good enough for me ;)

https://developer.android.com/reference/android/support/v4/view/ViewPager.html
 
Back
Top Bottom