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.
Touchscreen not lined up with Android Auto Interface
Re: Touchscreen not lined up with Android Auto Interface
If you want to display Android Auto in fullscreen mode on a 1920x720 screen, the margins should be set as follows:
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.
Code: Select all
"resolution": "1080p",
"widthMargin": 0,
"heightMargin": 360,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.
Re: Touchscreen not lined up with Android Auto Interface
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.
Re: Touchscreen not lined up with Android Auto Interface
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:
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