Touchscreen not lined up with Android Auto Interface

Post Reply
pault
Posts: 11
Joined: Fri Aug 01, 2025 5:33 am

Touchscreen not lined up with Android Auto Interface

Post by pault »

Hey. I've been able to mess around with this and I got a bigger screen. I have Android Auto taking up around 75% of the screen, and now the touchscreen inputs are offset. If I am in the Hudiy interface, no issues. Is there a setting for this, or is there something I should adjust?
Screen Res: 1920 x720
Android auto res: 1080p
widthmargin: 480
heightmargin: 360
"x": -240
The rest is default.
hudiy
Site Admin
Posts: 440
Joined: Mon Jul 14, 2025 7:42 pm

Re: Touchscreen not lined up with Android Auto Interface

Post by hudiy »

If you want to display Android Auto in fullscreen mode on a 1920x720 screen, the margins should be set as follows:

Code: Select all

"resolution": "1080p",
"widthMargin": 0,
"heightMargin": 360,
Explanation:
1080p corresponds to 1920x1080
Your screen resolution is 1920x720
1920 - 1920 = 0 -> widthMargin
1080 - 720 = 360 -> heightMargin

The touchscreen issue is mainly caused by a negative x value (the valid range for x is from 0 to windowWidth). There's no need to modify x and y when using fullscreen mode. These parameters are useful only if you want to position the Android Auto projection at a specific location on the screen.
pault
Posts: 11
Joined: Fri Aug 01, 2025 5:33 am

Re: Touchscreen not lined up with Android Auto Interface

Post by pault »

I am trying to set the Android auto to the left 75% of the screen, hence the adjustments I mentioned. How can I make sure the touchscreen is still lined up? all the sizing is as I would like it. Since the widthmargin centers the now smaller android auto screen, i dont see another way to set it to the left without using a negative x value.
hudiy
Site Admin
Posts: 440
Joined: Mon Jul 14, 2025 7:42 pm

Re: Touchscreen not lined up with Android Auto Interface

Post by hudiy »

Let's say your screen resolution is 1920x720.
You want to use 75% of the width for Android Auto, so:
1920 * 0.75 -> 1440

The Android Auto area inside the window will be 1440x720, and that's the size you need to match your margins to.

resolution: 1920x1080
widthMargin: 1920 - 1440 -> 480
heightMargin: 1080 - 720 -> 360

In the androidAuto object inside the main_configuration.json file, set:

Code: Select all

"resolution" : "1080p",
"widthMargin" : 480,
"heightMargin" : 360,
"width" : 1440,
"height" : 720,
"x": 0,
"y": 0
pault
Posts: 11
Joined: Fri Aug 01, 2025 5:33 am

Re: Touchscreen not lined up with Android Auto Interface

Post by pault »

Thanks, this worked!
Post Reply