Stay organized with collections
Save and categorize content based on your preferences.
ZoomDensity
class ZoomDensity
Enum for specifying the WebView's desired density.
FAR
makes 100% looking like in 240dpi
MEDIUM
makes 100% looking like in 160dpi
CLOSE
makes 100% looking like in 120dpi
Summary
Enum values
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# WebSettings.ZoomDensity\n\nAdded in [API level 7](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nZoomDensity\n===========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/webkit/WebSettings.ZoomDensity \"View this page in Java\") \n\n```\nclass ZoomDensity\n```\n\n|---|---|---------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.webkit.WebSettings.ZoomDensity](#)\\\u003e ||\n| | ↳ | [android.webkit.WebSettings.ZoomDensity](#) |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [WebSettings.ZoomDensity.CLOSE](#ENUM_VALUE:CLOSE), [WebSettings.ZoomDensity.FAR](#ENUM_VALUE:FAR), [WebSettings.ZoomDensity.MEDIUM](#ENUM_VALUE:MEDIUM) |------------------------------------------------------|--------| | [WebSettings.ZoomDensity.CLOSE](#ENUM_VALUE:CLOSE) | \u003cbr /\u003e | | [WebSettings.ZoomDensity.FAR](#ENUM_VALUE:FAR) | \u003cbr /\u003e | | [WebSettings.ZoomDensity.MEDIUM](#ENUM_VALUE:MEDIUM) | \u003cbr /\u003e | |\n\nEnum for specifying the WebView's desired density.\n\n- `FAR` makes 100% looking like in 240dpi\n- `MEDIUM` makes 100% looking like in 160dpi\n- `CLOSE` makes 100% looking like in 120dpi\n\n\u003cbr /\u003e\n\nSummary\n-------\n\n| Enum values ||\n|-------------------------------------|---|\n| [CLOSE](#ENUM_VALUE:CLOSE) \u003cbr /\u003e |\n| [FAR](#ENUM_VALUE:FAR) \u003cbr /\u003e |\n| [MEDIUM](#ENUM_VALUE:MEDIUM) \u003cbr /\u003e |\n\nEnum values\n-----------\n\n### CLOSE\n\nAdded in [API level 7](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val CLOSE : WebSettings.ZoomDensity\n``` \n\n### FAR\n\nAdded in [API level 7](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val FAR : WebSettings.ZoomDensity\n``` \n\n### MEDIUM\n\nAdded in [API level 7](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val MEDIUM : WebSettings.ZoomDensity\n```"]]