Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can target densities by using a layout folder like <code>layout-mdpi</code>, <code>layout-hdpi</code> and a <code>layout-xhdpi</code>. Why would you want to do this? using dips for everything will be fine.</p> <p>Edit: suggestions based on the comments you gave:</p> <p>by using a value like 200dp, the boxes on all devices kinda have the same size. Not in pixels but in actual size on the screen. This is what dips (the dp unit) is made for. </p> <p>The screens are supposed to look kinda the same on the different device sizes. Read the description on <a href="http://developer.android.com/guide/practices/screens_support.html" rel="nofollow">http://developer.android.com/guide/practices/screens_support.html</a> especially the section named <strong>"Density independence"</strong>.</p> <p>After reading that and if you still really, and I strongly suggest you don't do that, want them to look different on different screen sizes do this. </p> <ol> <li><p>In your layout xml define the width as <code>android:layout_width="@dimen/the_width"</code></p></li> <li><p>In the folder values, create a file values.xml. In there define a dimension like this <code>&lt;dimen name="the_width"&gt;200dp&lt;/dimen&gt;</code>. 200dp is an example and will be the default value.</p></li> <li><p>Override this value in the values-hdpi, values-xhdpi and/or values-mdpi folder, by creating the same values.xml, but with a different value for <code>the_width</code>.</p></li> </ol> <p>This will make the edittext have a different size on different screen sizes. </p>
    singulars
    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.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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