Android16 修改设置了壁纸但是实际显示效果缩放了的问题
在Android16上面,有个问题,当设置了壁纸后,实际的显示效果是稍微放大了,起初还以为是单一壁纸问题,但是测试过后,所有的壁纸都进行了缩放,查看追踪代码,framework有个属性可以控制这个缩放。
1.在framework/base/core/res/res/values/config.xml里面修改:
diff --git a/base/core/res/res/values/config.xml b/base/core/res/res/values/config.xml index 683e53d95..a9bca89d2 100644 --- a/base/core/res/res/values/config.xml +++ b/base/core/res/res/values/config.xml @@ -6160,7 +6160,7 @@ <item format="float" type="dimen">1</item> <!-- The max scale for the wallpaper when it's zoomed in --> - <item format="float" type="dimen">1.10</item> + <item format="float" type="dimen