Another awesome Android quirk: `context.getResources().getDisplayMetrics()` returns the dimens of the window. On devices without a notch, height is correct. On devices with a notch, height doesn't take into account the notch.
-
-
I use that. I can get the heights of each of the things, but I need `Dimensions.get("window").height` to work. It's wrong because it uses `getDisplayMetrics`.
- Još 2 druga odgovora
Novi razgovor
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.