Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid: Unwanted left/right margins on Nexus 10 in landscape mode
    primarykey
    data
    text
    <p>I'm having an issue with seemingly inexplicable margins that appear on the left and right sides of my layouts when using a Nexus 10 device in landscape mode. I'm sure it's something embarrassingly straightforward, but I can't find any mention of this when searching around.</p> <p>I'm pretty sure it's not related to my code, because the default Hello World project created by Eclipse exhibits the phenomenon. The following screenshot excerpts are taken from a brand new project and the only change I have made is to make the TextView textSize a bit bigger for clarity:</p> <p><img src="https://i.stack.imgur.com/xDpFK.jpg" alt="Comparison of landscape and portrait orientations on the Nexus 10"></p> <p>You can see that the default margins from the layout XML file (shown below) are applied correctly in portrait mode, but there is a considerable additional margin applied in landscape mode - indicated by the red bar underneath the screenshot.</p> <pre><code>&lt;!-- Default screen margins, per the Android Design guidelines. --&gt; &lt;dimen name="activity_horizontal_margin"&gt;16dp&lt;/dimen&gt; &lt;dimen name="activity_vertical_margin"&gt;16dp&lt;/dimen&gt; </code></pre> <p>Has anyone else seen this or have any idea how I can get rid of them? I don't really know where to start, because it seems to be specific this one device and screen orientation. Plus it affects the simplest program possible, as well as my own, so there's no sense in pulling apart my own code until I find out how to fix the default case.<br> The same screens display correctly on emulated devices and my Samsung Galaxy S2 (running Gingerbread). Changing the Project Build Target from API level 17 to 10 didn't alter the unwanted effect either. Any thoughts? </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.
    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