Mobile App Development Publication

Sharing iOS, Android and relevant Mobile App Development Technology and Learning

Learning Android Development

Beyond the Frame: Full-Screen Apps with Android’s Edge-To-Edge API

Dhanesh Katre
Mobile App Development Publication
5 min readMar 21, 2024

--

Illustration showing Edge-To-Edge content, generated by AI using Google’s AI test kitchen

Introduction

Embracing Edge-to-Edge designs

How we did it till now?

Revealing new API “enableEdgeToEdge”

Implementation made easy

Showing AQI App, where the app content is not getting drawn behind the system bars initially

A) Dependency- This API comes with standard Activity dependency:

dependencies {

def activity_version = "1.8.2" // May change in future

// Java language implementation
implementation "androidx.activity:activity:$activity_version"

// Kotlin
implementation "androidx.activity:activity-ktx:$activity_version"
}

B) Usage in ComponentActivity- In the onCreate method as follows:

Showing AQI App, where the app content is getting drawn behind the system bars, but obstructed

C) Assigning proper colors to system bars

D) “Safe” aware WindowInsets

Showing final AQI App, where the app content is getting drawn behind the system bars without any issues

Conclusion

--

--

Mobile App Development Publication
Mobile App Development Publication

Published in Mobile App Development Publication

Sharing iOS, Android and relevant Mobile App Development Technology and Learning

Dhanesh Katre
Dhanesh Katre

Responses (1)