Skip to content

screenWidthDp、screenHeightDp设置和还原没有考虑横竖屏切换情况吗? #463

Description

@start141

Environment

  • Autosize Version: v1.2.1
  • Target Android Version: 无关
  • Device Model: 无关
  • Device Resolution: 无关
  • Design Size On AndroidManifest: 无关

Bug Description:

screenWidthDp和screenHeightDp的大小是会随着横竖屏切换时来回变化的,而阅读AndroidAutoSize源码发现:
1、autoConvertDensity好像没有在横竖屏切换onConfigurationChanged时更新screenWidthDp和screenHeightDp。
2、cancelAdapt时好像也没有根据横竖屏设置不同的screenWidthDp和screenHeightDp值。(使用的是固定的InitScreenWidthDp、InitScreenHeightDp)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions