Cleaning up the stack sample widget

Change-Id: Ie5d1bcacb1943e87c0517b6e38cad1598e119f7d
diff --git a/samples/StackWidget/AndroidManifest.xml b/samples/StackWidget/AndroidManifest.xml
index 1fec157..25517f0 100644
--- a/samples/StackWidget/AndroidManifest.xml
+++ b/samples/StackWidget/AndroidManifest.xml
@@ -22,7 +22,7 @@
 
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.example.android.stackwidget">
-    <uses-sdk android:targetSdkVersion="11" android:minSdkVersion="11"/>
+    <uses-sdk android:targetSdkVersion="14" android:minSdkVersion="11"/>
     <application android:label="StackWidget">
         <receiver android:name="StackWidgetProvider">
             <intent-filter>
diff --git a/samples/StackWidget/res/layout/widget_layout.xml b/samples/StackWidget/res/layout/widget_layout.xml
index 11f9d36..983c6fb 100644
--- a/samples/StackWidget/res/layout/widget_layout.xml
+++ b/samples/StackWidget/res/layout/widget_layout.xml
@@ -15,7 +15,8 @@
 -->
 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
-    android:layout_height="match_parent">
+    android:layout_height="match_parent"
+    android:layout_margin="@dimen/widget_margin">
     <StackView xmlns:android="http://schemas.android.com/apk/res/android"
         android:id="@+id/stack_view"
         android:layout_width="match_parent"
diff --git a/samples/StackWidget/res/values-v14/dimens.xml b/samples/StackWidget/res/values-v14/dimens.xml
new file mode 100644
index 0000000..2626bc3
--- /dev/null
+++ b/samples/StackWidget/res/values-v14/dimens.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+<resources>
+    <dimen name="widget_margin">0dp</dimen>
+</resources>
diff --git a/samples/StackWidget/res/values/dimens.xml b/samples/StackWidget/res/values/dimens.xml
new file mode 100644
index 0000000..aa8a9e2
--- /dev/null
+++ b/samples/StackWidget/res/values/dimens.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+<resources>
+    <dimen name="widget_margin">8dp</dimen>
+</resources>
diff --git a/samples/StackWidget/res/xml/stackwidgetinfo.xml b/samples/StackWidget/res/xml/stackwidgetinfo.xml
index 6f59605..2a587e1 100644
--- a/samples/StackWidget/res/xml/stackwidgetinfo.xml
+++ b/samples/StackWidget/res/xml/stackwidgetinfo.xml
@@ -15,11 +15,13 @@
 -->
 <appwidget-provider
   xmlns:android="http://schemas.android.com/apk/res/android"
-  android:minWidth="150dip"
-  android:minHeight="150dip"
+  android:minWidth="110dip"
+  android:minHeight="110dip"
   android:updatePeriodMillis="3600000"
   android:previewImage="@drawable/preview"
   android:initialLayout="@layout/widget_layout"
-  android:autoAdvanceViewId="@id/stack_view"
-  android:resizeMode="horizontal|vertical">
+  android:autoAdvanceViewId="@id/stack_view">
 </appwidget-provider>
+<!--to enable resizing:
+ android:resizeMode="horizontal|vertical" -->
+ 
\ No newline at end of file