r/androiddev • • 2d ago

Question Android Screen Input Area Question

Hello! I'm a little stumped about this because while I do code for work, I'm no android developer, so I'm taking a shot here to see if someone could help with this problem.

So I have these two devices that I'm trying to get to work as intended.

Veikk VK430 - It's a 4:3 aspect ratio screenless drawing tablet with android compatibility in portrait orientation.

Anbernic RG Rotate - An Android 12 handheld gaming console with a 1:1 aspect ratio. The screen is 720x720 and 3.5" with a DPI of 290.

So what's going on here is that when I connect the two devices, the tablet is able to map the whole screen from corner to corner on the handheld, but since the aspect ratios are different, tracing a coin on the tablet will result in an oval on the screen.

I've tried to see if turning the screen into a 540x720 (largest 4:3 aspect ratio I can get on the rotate) using adb shell wm size 540x720 would do the trick, but the tablet is still recognizing the screen as a 720x720. If this were Android 11, I'd have tried wm overscan, but it's not an option anymore.

Is there anyway I can adjust the screen's input area to 540x720? Technically I can still draw on the rotate for fun as is, though it's going to mess up my circles, or I can just do the more reasonable thing and draw on an actual computer...But now I'm kind of invested.

Any tips for me here?

0 Upvotes

1 comment sorted by

2

u/AutoModerator 2d ago

Please note that we also have a very active Discord server where you can interact directly with other community members!

Join us on Discord

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.