I have difficulties developing 4x1 widget for Android.
This is the appprovider
<?xml version="1.0" encoding="utf-8"?> <appwidget-provider
xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="294dp"
android:minHeight="72dp"
android:initialLayout="@layout/main" />
And here is the main.xml
<?xml version="1.0" encoding="utf-8"?>
<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">
//content goes here
</LinearLayout>
I could see the widget but the size is 4x2. I confuse why I cannot have 4x1 widget size?
Thanks