© Ted Hagos 2018
Ted HagosLearn Android Studio 3 with Kotlinhttps://doi.org/10.1007/978-1-4842-3907-0_14

14. Fragments

Ted Hagos1 
(1)
Manila, National Capital Region, Philippines
 
What we’ll cover:
  • Introduction to fragments

  • Landscape and portrait orientation

  • Interfragment communication

In the early days of Android, when it ran only on phones and there weren’t any high-resolution screens, activities were sufficient as a way of composing the UI and interacting with the user. Then came the tablets and high-resolution screens, and it became increasingly difficult to create applications that could run well on both phones and tablets. Developers were faced with hard choices. Either you choose the least capable hardware as the target and make it like the ...

Get Learn Android Studio 3 with Kotlin: Efficient Android App Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.