Find if screen has rounded corners

166
May 01, 2018, at 00:22 AM

I am looking for a way to determine whether Android device has screen with rounded corners and ideally also the radius.

My usecase is a game that consist of a single fullscreen OpenGL view. It renders some UI elements close to the edges and borders to give as much area as possible to the game itself. But when the screen has rounded corners, they would be partially hidden, so they need to be positioned differently.

Rent Charter Buses Company
READ ALSO
ViewPager transition showing empty space when selecting distant tabs

ViewPager transition showing empty space when selecting distant tabs

I'm currently using a very simple TabLayout at the bottom with 5 tabs and ViewPager sample

143
How do I reverse the order of data from Firebase in my RecyclerView with a GridLayoutManager?

How do I reverse the order of data from Firebase in my RecyclerView with a GridLayoutManager?

I'm facing the problem that I want my uploaded data to be on the top of my RecyclerViewI┬┤m already displaying the data from Firebase in a RecyclerView with a GridLayoutManager

228
Partial file system access in android O?

Partial file system access in android O?

I have Android phone with Oreo(80)

193
Change video background on my app

Change video background on my app

I try to find a solution for my ideaI have a video with a transparent background

194