question

morenoh149 avatar image
morenoh149 asked Jeffrey Blattman commented

What are the android app canvas screen dimensions for every device?

https://docs.clover.com/clover-platform/docs/emula... details the total screen dimensions for each device.

What are the dimensions available to android apps (their canvas, screen minus top/bottom bars)?
App Market
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

chanel avatar image chanel commented ·

Hi @morenoh149, I'm not sure I understand your question. The display size and the canvas size should be similar, if not the same. You can also utilize built-in Android functionality to have your app "fill the screen".

We also have hardware specifications for each device here.

0 Likes 0 ·

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered Jeffrey Blattman commented
We do not have that information tabulated anywhere. You can get the value programmatically if you need it at runtime.

Display display = getWindowManager().getDefaultDisplay();
Point size = new Point();
display.getSize(size);
It'd help to understand why you need this information.
2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

morenoh149 avatar image morenoh149 commented ·

We wanted this info so we could provide the dimension of the app to a designer. In our case we won't be needing this as https://docs.clover.com/clover-platform/docs/creating-custom-tender-apps#section--customer-facing-setup- recommends `Customer-facing user experiences must always be fullscreen to prevent the customer from navigating away from your app.` The app dimensions (device screen - top bar - bottom bar) would still be useful for future developers making merchant-facing apps.

0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ morenoh149 commented ·

Right, and understood. In general you want you layouts to be flexible enough such that a few tens of pixels aren't going to change things. E.g., if we came out with a device that was 1200 pixels high, your layout for 1080 high should just work. You wouldn't want to have to go back to your designer for something like that.

0 Likes 0 ·

Welcome to the
Clover Developer Community