Skip to Content
Android Studio 4.2 Development Essentials - Kotlin Edition
book

Android Studio 4.2 Development Essentials - Kotlin Edition

by Neil Smyth
August 2021
Intermediate to advanced
804 pages
23h 25m
English
Packt Publishing
Content preview from Android Studio 4.2 Development Essentials - Kotlin Edition

53. Creating a Tabbed Interface using the TabLayout Component

The previous chapter outlined the concept of material design in Android and introduced two of the components provided by the design support library in the form of the floating action button and the Snackbar. This chapter will demonstrate how to use another of the design library components, the TabLayout, which can be combined with the ViewPager class to create a tab based interface within an Android activity.

53.1 An Introduction to the ViewPager

Although not part of the design support library, the ViewPager is a useful companion class when used in conjunction with the TabLayout component to implement a tabbed user interface. The primary role of the ViewPager is to allow the user ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Android Studio 4.1 Development Essentials – Kotlin Edition

Android Studio 4.1 Development Essentials – Kotlin Edition

Neil Smyth

Publisher Resources

ISBN: 9781803231549Supplemental Content