Enum android_manifest::ScreenSize
source · pub enum ScreenSize {
Small,
Normal,
Large,
Xlarge,
}
Expand description
Android runs on a variety of devices that have different screen sizes and pixel densities. The system performs basic scaling and resizing to adapt your user interface to different screens.
Variants§
Small
Screens that are of similar size to a low-density QVGA screen. The minimum layout size for a small screen is approximately 320x426 dp units. Examples are QVGA low-density and VGA high density.
Normal
Screens that are of similar size to a medium-density HVGA screen. The minimum layout size for a normal screen is approximately 320x470 dp units. Examples of such screens a WQVGA low-density, HVGA medium-density, WVGA high-density.
Large
Screens that are of similar size to a medium-density VGA screen. The minimum layout size for a large screen is approximately 480x640 dp units. Examples are VGA and WVGA medium-density screens.
Xlarge
Screens that are considerably larger than the traditional medium-density HVGA screen. The minimum layout size for an xlarge screen is approximately 720x960 dp units. In most cases, devices with extra-large screens would be too large to carry in a pocket and would most likely be tablet-style devices. Added in API level 9.
Trait Implementations§
source§impl Clone for ScreenSize
impl Clone for ScreenSize
source§fn clone(&self) -> ScreenSize
fn clone(&self) -> ScreenSize
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScreenSize
impl Debug for ScreenSize
source§impl Default for ScreenSize
impl Default for ScreenSize
source§fn default() -> ScreenSize
fn default() -> ScreenSize
source§impl<'de> Deserialize<'de> for ScreenSize
impl<'de> Deserialize<'de> for ScreenSize
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl PartialEq<ScreenSize> for ScreenSize
impl PartialEq<ScreenSize> for ScreenSize
source§fn eq(&self, other: &ScreenSize) -> bool
fn eq(&self, other: &ScreenSize) -> bool
self
and other
values to be equal, and is used
by ==
.