diff options
author | Roman Nurik <romannurik@google.com> | 2011-11-29 10:02:19 -0800 |
---|---|---|
committer | Roman Nurik <romannurik@google.com> | 2011-12-01 13:21:14 -0800 |
commit | 061cf70da9ba9f527fdf4f0fa022e91a670f6848 (patch) | |
tree | 39f462f3ad140cef8ca6b3bbcd79ff955147962f /docs/html/guide/topics/appwidgets | |
parent | fe464a76d8fc858be971dbb5e67b1d22fd925347 (diff) | |
download | frameworks_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.jd | 4 |
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> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" - <strong>android:layout_margin="@dimen/widget_margin"></strong> + <strong>android:padding="@dimen/widget_margin"></strong> <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><dimen name="widget_margin">15dp</dimen></pre></p> + <pre><dimen name="widget_margin">8dp</dimen></pre></p> <p><strong>res/values-v14/dimens.xml</strong>:<br> <pre><dimen name="widget_margin">0dp</dimen></pre></p> |