Android screen resolutions

I am following this tutorial link

There three types of screens

  • Is it possible to change the value of a string added in res/strings.xml on Android at run time/ or by code?
  • Android ExoPlayer onProgressChanged
  • Command pattern to pass application's activity methods?
  • Android Camera 2 Api
  • emulator: WARNING: Could not initialize OpenglES emulation, using software renderer
  • Android ICS emulator camera
  • xlarge screens are at least 960dp x 720dp
    large screens are at least 640dp x 480dp
    normal screens are at least 470dp x 320dp
    small screens are at least 426dp x 320dp

    But there are three folders


    I placed images of xlarge in hdpi
    that of large in mdpi
    and that of normal in ldpi
    but where to place the images of small screens?
    Sorry for bad english

    Related posts:

    Memory leak in WebView
    Global Variable / Constant in React Native
    onMeasure(): wrap_content, how do I know the size to wrap?
    Is it possible to rotate a drawable in the xml description?
    Android Studio - How Can I Make an AVD With ARM Instead of HAXM?
    how to add items to the spinner dynamically in android?
  • Android youtube API play two or more Youtube players in one main activity
  • Turn ON/OFF Camera LED/flash light in Samsung Galaxy Ace 2.2.1 & Galaxy Tab
  • My Android AChartEngine is already working, but how to make it look good?
  • Can someone provide a good explanation of Dagger 2?
  • Fill form in WebView with Javascript
  • Executing Groovy scripts embed in Java on runtime for Android
  • 4 Solutions collect form web for “Android screen resolutions”

    For example, The following is a list of resource directories in an application that provides different layout designs for different screen sizes and different bitmap drawables for small, medium, high, and extra high density screens.

    res/layout/my_layout.xml             // layout for normal screen size ("default")
    res/layout-small/my_layout.xml       // layout for small screen size
    res/layout-large/my_layout.xml       // layout for large screen size
    res/layout-xlarge/my_layout.xml      // layout for extra large screen size
    res/layout-xlarge-land/my_layout.xml // layout for extra large in landscape orientation
    res/drawable-mdpi/my_icon.png        // bitmap for medium density
    res/drawable-hdpi/my_icon.png        // bitmap for high density
    res/drawable-xhdpi/my_icon.png       // bitmap for extra high density

    and Screen Sizes.

    I hope this help.

    hdpi, mdpi and ldpi refer to the screen density in dots-per-inch. This is completely separate from the screen size (small, large, etc).

    You can have large screen with low density, or a small screen with high density, etc.

    You can cater for different screen sizes by putting different layout resources in res/layout-small, res/layout-large, etc.

    Screen size has no relation with density. xlarge screen does not mean it has hdpi density. For example tab like galaxy 10.1 pr motorola xoom has xlarge screen but mdpi density so for them you make a separate folder drawable-xlarge. and for this you have to add android:xlargeScreens="true" in manifest.

    And devices like galaxy s2 or htc desire has hdpi density. Devices with small screens like galaxy pop are mostly have ldpi density, normal screens like galaxy ace are mostly mdpi devices and devices with large screens like galaxy s2 are mostly hdpi devices, and some devices like tab P1000 have large screens but mdpi density and for them you have to make folder drawable-large-mdpi.

    These are two different things – hdpi/mdpi/ldpi are screen densities (i.e., how many pixels per square centimeter) while xlarge/large/normal/small are screen sizes (the physical dimensions of the screen). So the small screen images would go in drawable-small, normal in drawable-normal, etc.

    There’s a lot more info about this stuff on the Android developer website.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.