We have created a modern material dashboard in android studio using XML design. In the below UI, there is 6 card view inside a linear layout in which one image view and one text view are present.
ViewPager2 is a better version of ViewPager where there will be a view in which you can swipe right or left in a particular area. In the below project, we have used viewpager2 to swipe between the login and signup pages.
The GridView in android studio is a type of view in AdapterView that display the data in grid format, either horizontally or vertically. It shows data in the 2D design in rows and columns.