title: How to make 4x1 size widget on Android homescreen?
body: <p>I have difficulties developing 4x1 widget for Android.</p>
  
  <p>This is the appprovider</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:minWidth="294dp"
      android:minHeight="72dp"
      android:initialLayout="@layout/main" /&gt;
  </code></pre>
  
  <p>And here is the main.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="320dp"
      android:layout_height="100dp"
      android:gravity="center_vertical|center_horizontal"
      android:orientation="horizontal"&gt; 
  //content goes here
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I could see the widget but the size is 4x2. I confuse why I cannot have 4x1 widget size?</p>
  
  <p>Thanks</p>