summaryrefslogtreecommitdiffstats
path: root/docs/html/guide/topics/appwidgets
diff options
context:
space:
mode:
authorRoman Nurik <romannurik@google.com>2011-11-29 10:02:19 -0800
committerRoman Nurik <romannurik@google.com>2011-12-01 13:21:14 -0800
commit061cf70da9ba9f527fdf4f0fa022e91a670f6848 (patch)
tree39f462f3ad140cef8ca6b3bbcd79ff955147962f /docs/html/guide/topics/appwidgets
parentfe464a76d8fc858be971dbb5e67b1d22fd925347 (diff)
downloadframeworks_base-061cf70da9ba9f527fdf4f0fa022e91a670f6848.zip
frameworks_base-061cf70da9ba9f527fdf4f0fa022e91a670f6848.tar.gz
frameworks_base-061cf70da9ba9f527fdf4f0fa022e91a670f6848.tar.bz2
Update widget design guidelines for padding and 8dp.
Instead of using layout_margin for widget margins, the recommendation is to now use padding. Additionally, update all docs to mention an example default padding of 8dp instead of 15 or 16dp. Change-Id: I330aedc56986dbb31a70260279ad2f6668c67c92
Diffstat (limited to 'docs/html/guide/topics/appwidgets')
-rw-r--r--docs/html/guide/topics/appwidgets/index.jd4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/html/guide/topics/appwidgets/index.jd b/docs/html/guide/topics/appwidgets/index.jd
index 61337b7..2cb23c1 100644
--- a/docs/html/guide/topics/appwidgets/index.jd
+++ b/docs/html/guide/topics/appwidgets/index.jd
@@ -346,7 +346,7 @@ following layout classes:</p>
&lt;FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
- <strong>android:layout_margin="@dimen/widget_margin"&gt;</strong>
+ <strong>android:padding="@dimen/widget_margin"&gt;</strong>
&lt;LinearLayout
android:layout_width="match_parent"
@@ -363,7 +363,7 @@ following layout classes:</p>
<li>Create two dimensions resources, one in <code>res/values/</code> to provide the pre-Android 4.0 custom margins, and one in <code>res/values-v14/</code> to provide no extra padding for Android 4.0 widgets:
<p><strong>res/values/dimens.xml</strong>:<br>
- <pre>&lt;dimen name="widget_margin"&gt;15dp&lt;/dimen&gt;</pre></p>
+ <pre>&lt;dimen name="widget_margin"&gt;8dp&lt;/dimen&gt;</pre></p>
<p><strong>res/values-v14/dimens.xml</strong>:<br>
<pre>&lt;dimen name="widget_margin"&gt;0dp&lt;/dimen&gt;</pre></p>