简体   繁体   中英

Can I make the Android Studio Layout Resource File for SMALL XML include Nexus ONE and Nexus S phones?

Currently, in Android Studio when I create a Layout Resource File and pick the size SMALL, the small sizes are referred to as only the Android Wear (Watch) sizes.

However, instead of the Android Wear to be considered "Small" xml file, I'd like to make it that only Nexus S and Nexus ONE phone sizes are in the "small" xml. How can I change this?

The Nexus One's screen is 480x800 pixels, at 252 pixels per inch. This places it in the hdpi category, which means that it has approximately a 320x533 dp screen.

Here is the definition of a normal screen:

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.

Therefore, the Nexus One is a normal screen size, and there's nothing you can do to change that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM