Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

181
Views
How to handle cutout area by compose?

I'm a Android development beginner . How to handle cutout area by compose? As far as I know... WindowManager doesn't provide information about cutout area. and LayoutInDisplayCutoutMode can be set in xml file. I ask for your advice, please.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

In Compose 1.2.* (currently in alpha) you can get it like this:

// get value:
WindowInsets.displayCutout

// apply padding modifier:
Modifier.displayCutoutPadding() 

In earlier versions you can use Accompanist Insets library:

// get value:
LocalWindowInsets.current.displayCutout

// apply padding modifier:
Modifier.cutoutPadding()
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!