开发者

Not scaling in landscape mode?

开发者 https://www.devze.com 2023-02-16 11:36 出处:网络
When i set to some view weight or height in dpi on others screen resolutions and densityes in portraint mode scaling work fine. But it don\'t work whet turn to lanscape!

When i set to some view weight or height in dpi on others screen resolutions and densityes in portraint mode scaling work fine. But it don't work whet turn to lanscape!

I can make resources files for all densityes and resolution, but it not good solution for me beacause i have a lot of layouts.

I try to set anyDensity to false, use px or sp, turn off and on screen resolution. And nothing hapens.

There is an another solution to anything?

开发者_运维知识库Thanks for replyes!


Are you experiencing bad landscape layout when creating fixed dpi widths and heights? Create layout-land folder in the res folder. Create xml layout files for all the screens you would like to have in dpi dimensions for landscape.

0

精彩评论

暂无评论...
验证码 换一张
取 消