作者 杨谦

1.webview字体大小调整

... ... @@ -5,7 +5,6 @@ import android.util.AttributeSet
import android.view.View
import android.webkit.WebSettings
import android.webkit.WebView
import com.br_technology.securitytrain_master.expand.TranslateUnit
import com.br_technology.securitytrain_master.util.HtmlConvert
import org.jsoup.Jsoup
... ... @@ -18,8 +17,8 @@ class MyWebView(context: Context, attrs: AttributeSet?) : WebView(context, attrs
init {
settings.javaScriptEnabled = true
settings.minimumFontSize = TranslateUnit.sp2px(context, 14f)
settings.defaultFixedFontSize = TranslateUnit.sp2px(context, 15f)
settings.minimumFontSize = 14
settings.defaultFixedFontSize = 15
settings.useWideViewPort = true
settings.loadWithOverviewMode = true
settings.allowFileAccess = true
... ...