JessYanCoding / JessYanCoding/AndroidAutoSize

Webview在第三方的Activity里,density适配无效。

未關閉
#381 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Java
星號
13.7k
分支
2k
PR 合併指標
30 天內沒有已合併 PR

描述

重写 Activity 的 onCreateView(View parent, String name, Context context, AttributeSet attrs) 方法,在调用 super 之前调用一遍 AutoSize.autoConvertDensityOfGlobal(Activity)

_Originally posted by @JessYanCoding in https://github.com/JessYanCoding/AndroidAutoSize/issues/5#issuecomment-416011062_

————————————————————————————————————————————

Webview在第三方的Activity里,继承的WebViewActivity设置的density失效了,重写了onCreateView方法重新设了一遍也无效。有好的办法吗?

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Start by tracing WebViewActivity and the onCreateView(View parent, String name, Context context, AttributeSet attrs) override, then inspect the ordering of AutoSize.autoConvertDensityOfGlobal(Activity). Done means WebView density adaptation works in a third-party Activity without relying on an ineffective second reset; verify the behavior on Android.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
android, java
領域
mobile
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。