title: Widget minHeight="72dp" gives 2 rows of height
body: <p>I'm creating a basic widget that does nothing except display some static information (this is a tutorial demo exercise for me).</p>
  
  <p>My widget provider XML looks like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
      android:initialKeyguardLayout="@layout/widget"
      android:initialLayout="@layout/widget"
      android:minHeight="72dp"
      android:minWidth="294dp"
      android:updatePeriodMillis="60000" &gt;
  
      &lt;!-- NOTE 1: --&gt;
      &lt;!-- Widget sizing is done in terms of "blocks" on the screen. --&gt;
      &lt;!-- Each block is 74dp square. --&gt;
  
      &lt;!-- NOTE 2: --&gt;
      &lt;!-- OLD &amp; WRONG FORMULA used to be: size = (n*74) - 2 --&gt;
  
      &lt;!-- NOTE 3: --&gt;
      &lt;!-- NEW FORMULA has been UPDATED: size = (n*70) - 30 --&gt;
      &lt;!-- Based on new formula, the size should be 40dp. --&gt;
  
  &lt;/appwidget-provider&gt;
  </code></pre>
  
  <p>I want a widget that is 4x1. i.e. 1 row high.</p>
  
  <p>Following the formula I've seen on many posts, height = (rows x 74) -2, I get a minHeight figure of 72dp which should provide me with a widget height of 1 row / block.</p>
  
  <p>Installed on 4.1.1 gives me a widget that is 4x2.</p>
  
  <hr>
  
  <p>Following from that, I thought maybe my layout was forcing the widget to be bigger than expected. So I removed everything from my layout file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Still 4x2 - 2 blocks high.</p>