Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Create a new Project.</p> <p>There is a layout folder ,values-sw600dp,values-dw720dp-land. In both these folders, there is a dimens.xml file. What is written in it is this :-</p> <pre><code>&lt;resources&gt; &lt;!-- Customize dimensions originally defined in res/values/dimens.xml (such as screen margins) for sw720dp devices (`e.g. 10" tablets)` in landscape here. --&gt; &lt;dimen name="activity_horizontal_margin"&gt;128dp&lt;/dimen&gt; </code></pre> <p></p> <p>That mean folders with sw-720 dp are for 10 inch devices, similar 600dp are for 7 inch devices and default layout folders vary from 3 to 5 inch device.</p> <p><strong>layout-sw600dp</strong> -> This folder will have xml in PORTRAIL Orientation for 7 inch devices</p> <p><strong>layout-sw600dp-land</strong> -> This folder will have xml in LANDSCAPE Orientation for 7 inch devices. When you rotate your device, view will be formed from this folder</p> <p>Based on the dpi/resoulution of your devices, you can create unlimited number of layout folders.</p> <p>Similarly, there are folders for images called drawable ->hdpi ldpi mdpi xhdpi xxhdpi. Based on the resolution of devices, images are picked from their respective category.</p> <p><strong>xxhdpi will contain images with the highest resolution</strong>. So try to download big resolution images and downsize them and put them in the other folders.</p> <p>Now how to know which device will take which image ? <strong>See the image below :-</strong></p> <p>See the drop down. It contains a list of devices with their resolutions and image type -hdpi ldpi mdpi xhdpi xxhdpi. Moreover, you can <strong>GOOGLE</strong> for the devices and their resolutions and dpi's.</p> <p>So whatever app you are making for a device, choose that device and look at its resolution and see whether it is hdpi or ldpi etc. Accordingly, put the images and layouts.</p> <p>This is my understanding. I create my layouts with this understanding. I hope you got a clear picture <img src="https://i.stack.imgur.com/EXnfa.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload